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

How to find an attribute from xml in asp

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?

1 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

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