Extract And SET Values from XML File
I have XML string like this
<Request><Header><UserId>pgh</UserId><Token>05032015T1105144</Token></Header></Request>
How can I extract the <UserId> and <Token> values only?
So for the above string --I want the values
pgh
05032015T1105144
I want to set these 2 values to variables like this...everything else in the string goes away
<CFSET userid =pgh>
<CFSET token = 05032015T1105144>
So you START with this
<Request><Header><UserId>pgh</UserId><Token>05032015T1105144</Token></Header></Request>
And END with this
<CFSET userid =pgh>
<CFSET token = 05032015T1105144>