How to find an attribute from xml in asp

Posted on 2009-04-15
Last Modified: 2012-05-06
I have a Response XML.
Now I need to find one of the attributes data.

My XML Response is below.

"<?xml version=""1.0"" encoding=""UTF-8""?>
<StatusMsg>Request does not adhere to the DTD. Please correct and send again.</StatusMsg>

From above Response XML I need to find data (i.e., 05) of "ProcStatus" attribute.
Can you please say me how to find it in classic asp?

Question by:ravindra333
    1 Comment
    LVL 9

    Accepted Solution

    once you have the response in an XML document object, you can query the results as
    datavalue = objXMLDoc.documentelement.selectsinglenode("ProcStatus").text

    Featured Post

    Highfive Gives IT Their Time Back

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    Join & Write a Comment

    I recently decide that I needed a way to make my pages scream on the net.   While searching around how I can accomplish this I stumbled across a great article that stated "minimize the server requests." I got to thinking, hey, I use more than one…
    I have helped a lot of people on EE with their coding sources and have enjoyed near about every minute of it. Sometimes it can get a little tedious but it is always a challenge and the one thing that I always say is:  The Exchange of information …
    Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
    In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor ( If you're interested in additional methods for monitoring bandwidt…

    746 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    14 Experts available now in Live!

    Get 1:1 Help Now