This is probably a simple question but using xmlhttp, how do I get the text of the token node in this XML? There has to be a better way than this:
XML.FirstChild.NextSibling.FirstChild.FirstChild.FirstChild.FirstChild.NextSibling.Text
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<GetToken2Response xmlns="webservice">
<GetToken2Result>
<ResponseStatus>
<ResponseCd>Fail or Success or Warning</ResponseCd>
<ResponseMsg>string</ResponseMsg>
<Version>string</Version>
</ResponseStatus>
<Token>string</Token>
<Expiration>double</Expiration>
<Valid>boolean</Valid>
</GetToken2Result>
</GetToken2Response>
</soap:Body>
</soap:Envelope>
I saved your XML to a file, then ran this procedure and it gave me ‘string’ as the value for Token.