XML Element to Session Variablehttp://forums.asp.net/t/307158.aspx/1?XML+Element+to+Session+VariableTue, 12 Aug 2003 20:58:08 -0400307158307158http://forums.asp.net/p/307158/307158.aspx/1?XML+Element+to+Session+VariableXML Element to Session Variable The following XML Document is being returned by a server on an ASP.net page. <pre class="prettyprint">Card declined</pre> I am using this code to assign the session variable for each of the attributes. <pre class="prettyprint"> set atts = item.attributes i = 0 do while i < atts.length session(atts.item(i).nodeName) = atts.item(i).nodeValue response.write("<br>" & atts.item(i).nodeName & "=" & atts.item(i).nodeValue ) i = i + 1 loop </pre> I'm having trouble figuring out how to get the &quot;Card Declined&quot; 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 2003-08-12T18:30:52-04:00307175http://forums.asp.net/p/307158/307175.aspx/1?Re+XML+Element+to+Session+VariableRe: XML Element to Session Variable What about using item.InnerText 2003-08-12T18:41:29-04:00307294http://forums.asp.net/p/307158/307294.aspx/1?Re+XML+Element+to+Session+VariableRe: XML Element to Session Variable You can also try item.text 2003-08-12T20:03:06-04:00307325http://forums.asp.net/p/307158/307325.aspx/1?Re+XML+Element+to+Session+VariableRe: XML Element to Session Variable I dont think there is a text property in XmlElement, there use to be one in MSXML, but not in .net 2003-08-12T20:27:25-04:00307352http://forums.asp.net/p/307158/307352.aspx/1?Re+XML+Element+to+Session+VariableRe: XML Element to Session Variable sorry, slipped up there big time! 2003-08-12T20:49:23-04:00