cancel
Showing results for 
Search instead for 
Did you mean: 

Unable to get node using XmlHolder

SOLVED
Occasional Contributor

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

 

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Occasional Contributor

Re: Unable to get node using XmlHolder

Found the solution

 

holder.getNodeValue("//*:AccountId")

 

View solution in original post

2 REPLIES 2
Highlighted
Occasional Contributor

Re: Unable to get node using XmlHolder

Found the solution

 

holder.getNodeValue("//*:AccountId")

 

View solution in original post

Highlighted
Occasional Contributor

Re: Unable to get node using XmlHolder

Old but gold. The answer to my problem I've been looking for, for hours. Tnx for coming back and posting the solution.

New Here?
Join us and watch the welcome video:
Announcements
Top Kudoed Authors