cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Bookmark
|
Subscribe
|
1064
Views
20
Helpful
4
Replies

Get XML Data in UCCX

wahyukurnia
Level 1
Level 1

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

 

4 Replies 4

wahyukurnia
Level 1
Level 1

I tried using XML Path "//m:CapitalCityResult". Unfortunately I got error while debugging.

How to contruct the XML Path if there is a colon?

david.macias
VIP Alumni
VIP Alumni

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()

wahyukurnia
Level 1
Level 1

Hi David,

 

Many thanks for your help.

Now I found the solution. I just modified the XML Path to //*[name()='m:CapitalCityResult']

 

Glad you solved it!

 

david