Suppose I have an XML statement as below:
<expression>
<refobj>[Sales Volume (Actual)]</refobj> - <refobj>[Sales Volume (Target)]</refobj>
</expression>
How can I parse this expression in Java? My Java output should be a String :
[Sales Volume (Actual)]-[Sales Volume (Target)]
I am parsing my XML file to java using DOM parser.
DocumentBuilderFactoryto create aDocumentBuilder, and then use that to parse the XML into an instance oforg.w3c.dom.Document. What have you written so far?