The following XML Document is being returned by a server on an ASP.net page.
Card declined
I am using this code to assign the session variable for each of the attributes.
set atts = item.attributes
i = 0
do while i < atts.length
session(atts.item(i).nodeName) = atts.item(i).nodeValue
response.write(" " & atts.item(i).nodeName & "=" & atts.item(i).nodeValue )
i = i + 1
loop
I'm having trouble figuring out how to get the "Card Declined" text into a session variable to be used on the next form. I know that it's just the main element's information,
but for the life of me I can't find the code needed to extract it into a session variable. thanks Robert
rlsprague
Member
25 Points
5 Posts
XML Element to Session Variable
Aug 12, 2003 06:30 PM|LINK
set atts = item.attributes i = 0 do while i < atts.length session(atts.item(i).nodeName) = atts.item(i).nodeValue response.write("I'm having trouble figuring out how to get the "Card Declined" text into a session variable to be used on the next form. I know that it's just the main element's information, but for the life of me I can't find the code needed to extract it into a session variable. thanks Robert" & atts.item(i).nodeName & "=" & atts.item(i).nodeValue ) i = i + 1 loop
CarlosAg
Participant
1355 Points
271 Posts
Microsoft
Re: XML Element to Session Variable
Aug 12, 2003 06:41 PM|LINK
shaunoreilly...
Member
45 Points
9 Posts
Re: XML Element to Session Variable
Aug 12, 2003 08:03 PM|LINK
CarlosAg
Participant
1355 Points
271 Posts
Microsoft
Re: XML Element to Session Variable
Aug 12, 2003 08:27 PM|LINK
shaunoreilly...
Member
45 Points
9 Posts
Re: XML Element to Session Variable
Aug 12, 2003 08:49 PM|LINK