I have different forms of XML that I must analyse,
<AMDI>
...
<MI>
</MI>
</AMDI>
or
<AMDI>
...
<AD>
</AD>
</AMDI>
So I want to build an XPath query depending of the type of the node (if it’s an MI : XML_ITEMS = “//MI/DL/D”, if it’s an AD : XML_ITEMS = “//AD/DL/D”)
I’m working with DocumentBuilder and XPathExpression.
Thnx for the help 🙂
You can also list the different nodes like this :
And choose the write node 🙂
Thanx a lot