<p>I am new to asp and have a deadline in the next few days.
i receive the following xml from within a webservice response.</p>

<pre><code>print("&lt;?xml version="1.0" encoding="UTF-8"?&gt;
&lt;user_data&gt;
&lt;execution_status&gt;0&lt;/execution_status&gt;
&lt;row_count&gt;1&lt;/row_count&gt;
&lt;txn_id&gt;stuetd678&lt;/txn_id&gt;
&lt;person_info&gt;
    &lt;attribute name="firstname"&gt;john&lt;/attribute&gt;
    &lt;attribute name="lastname"&gt;doe&lt;/attribute&gt;
    &lt;attribute name="emailaddress"&gt;john.doe@johnmail.com&lt;/attribute&gt;
&lt;/person_info&gt;
&lt;/user_data&gt;");
</code></pre>

<p>How can i parse this xml into asp attributes?</p>

<p>Any help is greatly appreciated</p>

<p>Thanks
Damien</p>

<p>On more analysis, some soap stuff is also returned as the aboce response is from a web service call. can i still use lukes code below?</p>

You need to read about MSXML parser. Here is a link to a good all-in-one example
http://oreilly.com/pub/h/466
Some reading on XPath will help as well. You could get all the information you need in MSDN.
Stealing the code from
Luke
excellent reply for aggregation purposes:
```
```
Dim oXML, oNode, sKey, sValue

Set oXML = Server.CreateObject("MSXML2.DomDocument.6.0") 'creating the parser object
oXML.LoadXML(sXML) 'loading the XML from the string

For Each oNode In oXML.SelectNodes("/user_data/person_info/attribute")
  sKey = oNode.GetAttribute("name")
  sValue = oNode.Text
  Select Case sKey
    Case "execution_status"
    ... 'do something with the tag value
    Case else
    ... 'unknown tag
  End Select
Next

Set oXML = Nothing
```
```