I have inherited some code that parses an XML document. I don't know XML very well, and I've certainly not used
Java to do it. That's my disclaimer.
So my program is dying, with what I assume is an NPE - the log says:
the line in question is as follows:
The XML is wellformed and valid, according to the schema. However, the tag for this field are empty... in other words, i have this in the XML:
<the_string></the_string>
Am i correct that when we try and get this, we getNodeValue(), we get a null object. Then, we try and call trim(), causing the NPE?
We are using the org.w3c.dom.Document/Element/Node/etc. classes to do this, if that make any difference.