EDN Admin
Well-known member
I need to parse hundreds of XML files that have many unknown fields. As a first step, all I want is a simple list of the elements and attributes. That is, the name of the element, not the value. For example, if the XML was
<customer>
<name>John Doe</name>
<phone type="home 123-456-7890</phone>
<phone type ="work 555-555-5555</phone>
<order>
<orderid>4532</orderid>
<total>$99.00</total>
</order>
</customer>
Id like the output to be something like:
customer
customer.name
customer.phone.type=Home
customer.phone.type=Work
customer.order
customer.order.orderid
customer.order.total
Any help is greatly appreciated.
View the full article
<customer>
<name>John Doe</name>
<phone type="home 123-456-7890</phone>
<phone type ="work 555-555-5555</phone>
<order>
<orderid>4532</orderid>
<total>$99.00</total>
</order>
</customer>
Id like the output to be something like:
customer
customer.name
customer.phone.type=Home
customer.phone.type=Work
customer.order
customer.order.orderid
customer.order.total
Any help is greatly appreciated.
View the full article