Answer the question
In order to leave comments, you need to log in
How to do without NS prefixes in XPath query?
I'm using the browser's window.DOMParser to parse an XML document
if (window.DOMParser) {
xmlDoc = (new DOMParser()).parseFromString(xmlString, "application/xml");
<Debtor xsi:type="ns1:Individual" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<ns1:PartyId>271229</ns1:PartyId>
<ns1:RegistrationAddress>
<ns1:City>Москва</ns1:City>
<ns1:Street>Зеленоград</ns1:Street>
Debtor/ns1:RegistrationAddress/ns1:City
Debtor/RegistrationAddress/City
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question