Ask a Question

Unable to get node using XmlHolder

SOLVED
Willa
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

 

2 REPLIES 2
Willa
Occasional Contributor

Found the solution

 

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

 

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

cancel
Showing results for 
Search instead for 
Did you mean: