Options

SelectSingleNode does not find node

Hi! Straight to my problem...

In the following lines the call to selectSingleNode throws NullReferenceException:

XmlDocResponse := XmlHttp.responseXML();
XmlDocResponse.selectSingleNode('BarcodePrintZplResult');

And this is my XML doc:
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/&quot; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance&quot; xmlns:xsd="http://www.w3.org/2001/XMLSchema"><soap:Body><BarcodePrintZplResponse xmlns="http://tempuri.org/"><BarcodePrintZplResult>Object reference not set to an instance of an object.</BarcodePrintZplResult></BarcodePrintZplResponse></soap:Body></soap:Envelope>

How do I properly select the result node without using a 'XmlNamespaceManager' variable?

Best Answer

Answers

  • Options
    Bogdan9119Bogdan9119 Member Posts: 14
    Thanks for your help.

    When I call XmlDocResponse.selectNodes('BarcodePrintZplResult') there is no NullReferenceException.
Sign In or Register to comment.