Forums Register Login
Java XML parser to parse the XML file

I have a requirement wherein i have to parse an XML file and generate a new XML file out of that.

My XML file looks like this

My file has many entries like these. Now i have to parse this XML file and have to produce an output like this for all the entries:

Can anyone please help me with this.


If you want to transform one XML format into another XML format then I think using XSLT would be a good choice.
javax.xml.transform.TransformerFactory and javax.xml.transform.Transformer should be able to help you out:

This thread has been viewed 1532 times.

All times above are in ranch (not your local) time.
The current ranch time is
Sep 21, 2018 06:14:01.