Unable to get node using XmlHolder
SOLVED- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-16-2015
09:33 AM
12-16-2015
09:33 AM
Unable to get node using XmlHolder
Hi,
How can I access "AccountId" node in the following request using XmlHolder
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"> <s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <Message xmlns="http://www.example.com/schema/message"> <Header> <AccountId>12345763-210b-468b-97ce-18374f8d73a7</AccountId> </Header> </Message> </s:Body> </s:Envelope>
I've tried holder["//AccountId"], but it didn't work
Thanks
Solved! Go to Solution.
2 REPLIES 2
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-16-2015
10:45 AM
12-16-2015
10:45 AM
Found the solution
holder.getNodeValue("//*:AccountId")
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-21-2018
02:26 AM
11-21-2018
02:26 AM
Old but gold. The answer to my problem I've been looking for, for hours. Tnx for coming back and posting the solution.
