04-18-2021 08:47 AM
I have this xml document and try to get the data from this xml document:
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<m:CapitalCityResponse xmlns:m="http://www.oorsprong.org/websamples.countryinfo">
<m:CapitalCityResult>Tokyo</m:CapitalCityResult>
</m:CapitalCityResponse>
</soap:Body>
</soap:Envelope>
There is a colon (a punctuation mark) in "Capital City Result".
how do i get the child information
04-18-2021 09:45 AM
I tried using XML Path "//m:CapitalCityResult". Unfortunately I got error while debugging.
How to contruct the XML Path if there is a colon?
04-18-2021 06:43 PM
Namespace is such a pain try this, it's not exact, but hopefully will get you going:
/*[name()='soap:Envelope']/*[name()='soap:Body']/*[name()='m:CapitalCityResponse']/*[name()='m:CapitalCityResult']/text()
04-19-2021 02:09 AM
Hi David,
Many thanks for your help.
Now I found the solution. I just modified the XML Path to //*[name()='m:CapitalCityResult']
04-19-2021 06:52 AM
Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: