Thanks for quick response.
For Ex:
The following is the incoming XML
======================================
<?xml version="1.0"?>
<GroupLotMovement>
<Record>
<PremiseLocationID>1231</PremiseLocationID>
<USDAPremiseID>12355</USDAPremiseID>
<EventTypeCode>MOV</EventTypeCode>...
Thanks Jon for your quick reply. The output I need is comma separated text file with header. The header should be the name of the final node. It is possible that the node can be at different level of the tree.
The code is returning the rows for all level node. Is it possible to display just the...
Is it possible to convert any given XML into CSV format? I know I can use XSLT to convert XML into CSV, if you know the XML DTD/Schema. But I don't know the name of tags and # of tags used in the XML.
Ex:
<ROOT>
<ROW>
<COL1>123</COL1>
<COL2>224</COL2>
<COL3>eterte</COL3>
</ROW>
</ROOT>...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.