Hello all. Could someone kindly post some code to show me how to parse the following example XML data (read in from a
string?)
<?xml version="1.0" ?>
<FORMDATA>
<BILLING>
<INVOICENO>1111111</INVOICENO>
<CUSTOMERNO>ABC123</CUSTOMERNO>
</BILLING>
</FORMDATA>
I'm using the JAXP parser. The document seems to be parsing okay, as I can System.out.println doc.getDocumentElement() and see the entire XML stream.
Here's the code I've got so far, which isn't much:
I'm after the value of the INVOICENO and CUSTOMERNO. Is there some sort of way to access the value of these elements by XML tag names?
Thanks in advance for the help,
Rick <><