Hi,
I'm using the COBOL XML PARSER (XML PARSE stmt) for the first time and attempting to parse a document that has the same element tag <RqUID> in multiple places throughout the XML doc. For example...
<BankSvcRq>
<RqUID>123-456-789</RqUID>
<AcctInqRq>
<RqUID>454-123-987</RqUID>
</AcctInqRq>
</BankSvcRq>
Is there some mechanism/feature of the XML PARSER that will allow me to differentiate between the two occurences of RqUID? For example I would like to know that I'm dealing with <RqUID> of the <BankSvcRq> aggregate versus <RqUID> that forms part of the <AcctInqRq>. Or, will I have to manage this situation using good old COBOL logic?
Any help would be appreciated!
Thanks, Chris.
I'm using the COBOL XML PARSER (XML PARSE stmt) for the first time and attempting to parse a document that has the same element tag <RqUID> in multiple places throughout the XML doc. For example...
<BankSvcRq>
<RqUID>123-456-789</RqUID>
<AcctInqRq>
<RqUID>454-123-987</RqUID>
</AcctInqRq>
</BankSvcRq>
Is there some mechanism/feature of the XML PARSER that will allow me to differentiate between the two occurences of RqUID? For example I would like to know that I'm dealing with <RqUID> of the <BankSvcRq> aggregate versus <RqUID> that forms part of the <AcctInqRq>. Or, will I have to manage this situation using good old COBOL logic?
Any help would be appreciated!
Thanks, Chris.