0
我有来自服务器的响应数据。我需要从XML中提取结果内容值。在钛中解析xml
<?xml version="1.0" encoding="utf-8"?>
<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>
<Response xmlns="http://tempuri.org/">
<Result>Token1234567890</Result>
</Response>
</soap:Body>
</soap:Envelope>
我getElementsByTagName('Response').text;
试过我怎样才能获得元素内容是Token1234567890
结果呢?
如果您有一个有效的答案,您应该接受一个答案,以便它不会显示为未答复的问题。 –