• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 622
  • Last Modified:

How to find an attribute from xml in asp

Hi,
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""?>
<Response>
<QuickResp>
<ProcStatus>05</ProcStatus>
<StatusMsg>Request does not adhere to the DTD. Please correct and send again.</StatusMsg>
</QuickResp>
</Response>"

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?

0
ravindra333
Asked:
ravindra333
1 Solution
 
dan_nealCommented:
once you have the response in an XML document object, you can query the results as
datavalue = objXMLDoc.documentelement.selectsinglenode("ProcStatus").text
0

Featured Post

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now