сервер возвращает
<?xml version='1.0' encoding='utf-8'?>
<S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/">
<S:Body>
<ns2:QWEResponse xmlns:ns2="http://www.service.org/">
<return>
<ns2:Worker>
<ns2:Cod>33333333333333333</ns2:Cod>
<ns2:Name>eeeee</ns2:Name>
<ns2:BirthDate xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="true" />
<ns2:INN>dddddddddddd</ns2:INN>
<ns2:Sex>rrrrr</ns2:Sex>
<ns2:Link>dddddddddddddd</ns2:Link>
</ns2:Worker>
</return>
</ns2:QWEResponse>
</S:Body>
</S:Envelope>
пытаюсь
var выборка = xmlhttp.responseXML.getElementsByTagName("Worker")
выборка получается пустой.
xmlhttp.responseXML вовращает Document
а в responseText - это вся инфа. <?xml version='1.0' en.......
как можно разпарсить?
или что не так я делаю?
нужно так
var выборка = xmlhttp.responseXML.getElementsByTagNameNS("http://www.service.org/", "Worker")