I am processing a DomDocument which is basically the XML result of a SOAP web service. To give you an idea, this is what it looks like
...
Instead of
rows[i].getNodeValue()
use
rows[i].getNodeValue().getChildNodes().item(0).getNodeValue()
You want getTextContent() rather than getNodeValue() - the latter always returns null for element nodes.
getTextContent()
getNodeValue()