My Java application receives a XML string from another application (TIBCO app). In my Java app I need to read, modify and send back the modified XML string to the application (TIBCO). The input XML string looks something like this:
Please suggest an efficient parser which can help me achieve this. Please note, I will have to send back the XML in the exact format,i.e, with namespace declaration and namespace prefixes. The choice of parser would be one which consumes less memory and is fast. Also, at this point of time the XML content is not very big but might increase in future hence memory usage is a consideration.
P.S: Please ignore any syntax errors in the XML as I have typed it and not copy pasted from the app.