reading an XML file in classic ASP/vbscript

Posted on 2010-01-11
Medium Priority
Last Modified: 2012-05-08
In my ASP page, I  have variable that has an XML response payload inside.  How would i best parse this field?  to get the node values from the string?  
it is IIS 6.0 so i have some options.  but the ASP is classic ASP and i dont have time rewrite the ASP applications.

when i do this:
 response.Write("FULL XML: " & wsResponse)

i get this:

FULL XML: 3Severe errors occurred, check message.No active truck visit found for Gate Visit Nbr 741.SEVERE<argo:gate-response xmlns:argo="http://www.test.com/argo" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.test.com/argo GateWebserviceResponse.xsd"><submit-transaction-response /></argo:gate-response><update-status> <document-update status="ACCEPTED" ></document-update > <entity-updates amount-successful="0" amount-failed="1" amount-not-found="0"> <logical-entity-update logical-entity="n/a" id="unknown" status="FAILED" >No active truck visit found for Gate Visit Nbr 741.</logical-entity-update> </entity-updates> </update-status>

Question by:globalterminal
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
LVL 52

Accepted Solution

Carl Tawn earned 1000 total points
ID: 26293366
You will basically need to create a DOMDocument object, load your XML and then either iterate over the nodes, or use XPath to retrieve individual nodes.

Alternatively, if you are only displaying it, then you could just apply and XSL transform to render the data as HTML.

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Hello, all! I just recently started using Microsoft's IIS 7.5 within Windows 7, as I just downloaded and installed the 90 day trial of Windows 7. (Got to love Microsoft for allowing 90 days) The main reason for downloading and testing Windows 7 is t…
I was asked about the differences between classic ASP and ASP.NET, so let me put them down here, for reference: Let's make the introductions... Classic ASP was launched by Microsoft in 1998 and dynamically generate web pages upon user interact…
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…

752 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