Hello, I'm given this XML document that contains a People
class that
consist of teachers, students and TA's and I wanted to
build up a
classes list of the information provided by that document to
list out
the teachers, all its students and TA's that is associated
with the
same classes.
//////Example input:
<People>
<Person>
<First> M</First>
<Last> Burns </Last>
<Handle> MBurns </Handle>
<Teach> biology </Teach>
<Teach> chemistry </Teach>
</Person>
<Person>
<First> Lista </First>
<Last> Simpson </Last>
<Handle> Lsimpson </Handle>
<TA> biology </TA>
<Student> history </Student>
<Student> english </Student>
</Person>
<Person>
<First> Homer </First>
<Last> Simpson </Last>
<Handle> HSimposon </Handle>
<Student> writing </Student>
<Student> biology </Student>
<Student> art </Student>
</Person>
</People>
/////Example Output:
<Classes>
<Class>
<Name>biology</Name>
<Teach>MBurns</Teach>
<TA>Lsimpson</TA>
<Student>HSimposon</Student>
</Class>
</Classes
I believe there is an XML reader built int C# ? I wasn't
sure how to
start the parsing process. Thank you
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "C-Sharp (C#)" group.
To post to this group, send email to C_Sharp googlegroups.com
To unsubscribe from this group, send email to
C_Sharp-unsubscribe googlegroups.com
For more options, visit this group at http://groups.
google.com/group/C_Sharp
-~----------~----~----~----~------~----~------~--~---
|