What is the best way to modify a few fields in an XML using Java

Posted by Kailas J C on Stack Overflow See other posts from Stack Overflow or by Kailas J C
Published on 2012-06-20T09:14:04Z Indexed on 2012/06/20 9:16 UTC
Read the original article Hit count: 157

Filed under:
|
|
|
|

I have a big XML which contains around 300 elements. I need to modify 2 or 3 elements in this xml using Java. I don't want to go for conventional marshalling and unmarshalling as it involves the parsing of the whole XML. How is XPath/XSLT manipulation? I know that I can easily read the data but i need to modify the same and put in back in the same XML. The primary concern here is performance. Kindly advise

© Stack Overflow or respective owner

Related posts about java

Related posts about Xml