I have to parse an XML document that looks like this:
Use:
/*/*/*/*/*
[local-name()='REPORT_DATA'
or
local-name()='REPORT_HEADER'
]
Anyone care for more complete syntax?
String xPathExpression = "/*[local-name()='OASISReport]
/*[local-name()='MessagePayload]
/*[local-name()='RTO]
/*[local-name()='REPORT_ITEM]
/*[local-name()='REPORT_DATA"];
Btw, if the XPath also requires the element index position:
String xPathExpression = "/*[local-name()='OASISReport][1]