這可能是一個簡單的問題,但使用xmlhttp,如何獲取此XML中的令牌節點的文本?必須有比這更好的方式:無法從XML節點獲取文本
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>
老兄,你總得* *退房的XPath ......這'.FirstChild.NextSibling.FirstChild.FirstChild.FirstChild ...'業務是無法控制的! –