I'm looking for a simple way to parse std XML files into a vb.net
collection. Without needing to know what the data is or the header names
of what is in the file.
The parser would place the XML contents it into a collection and via the
structure of the collection, you'd know the hierarchy of the data.
thus wanting something like this...
<?xml version="1.0" encoding="UTF-8"?>
<collection>
<comment>Company employees</comment>
<section name="employee1">
<item key="name" value="Bob Johnson" />
<item key="department" value="Accounting" />
</section>
<section name="employee2">
<item key="name" value="Susan Fielding" />
<item key="department" value="Sales" />
</section>
</collection>
turn into a collection like this...
collection.comment.text = "Company employees"
collection.section.name = "employee1"
collection.section.name.employee1.item.name = "Bob Johnson"
collection.section.name.employee1.item.department = "Accounting"
... and so forth.
*** Sent via Developersdex
http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!