I’m using an old version of the JRE (1.4) where Node.getTextContents() and Node.setTextContents() are not available. Is there a long way to do these actions still?
Example XML:
<MyEle>4119<MyEle/>
Java:
//myEleNode is a Node found while traversing String nodeString = myEleNode.getTextContent(); if(nodeString.equals('4119')){//do something}
The text is a child node of the MyEle element, so you would use something like: