Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: Parseing XML in ASP Page

From: EarlFKimbleJr@-----------.---------.---
To: NULL
Date: 11/1/2005 12:36:00 PM
Actually the response does not contain a Content-Type of text/xml or 
application/xml.

So I guess there's nothing I can do.

"Martin Honnen" wrote:

> 
> 
> Earl F. Kimble Jr. wrote:
> 
> > As long as you guys are on the subject, I have been trying to do something 
> > similar with the USPS Rat Calculator API.
> 
> Rat Calculator? Nice one :)
> 
> 
> > Can I use  HttpRequest.responseXML.save without naming a file?
> 
> If the server you make the HTTP request to sends content with a 
> Content-Type of text/xml or application/xml then the XMLHTTP object 
> parses the response body as XML and populates responseXML as a 
> DOMDocument so you can then do all DOM or XPath stuff with responseXML 
> to extract data. No need to save that to the file system.
> 
> Either do e.g.
>  
> HttpRequest.responseXML.selectSingleNode("element-name/child-element-name")
> 
> or store it in a variable for shorter expressions e.g.
>    Dim RespXml
>    Set RespXml = HttpRequest.responseXML
> to then use e.g.
>    RespXml.selectSingleNode("element-name/child-element-name")
> 
> 
> -- 
> 
> 	Martin Honnen --- MVP XML
> 	http://JavaScript.FAQTs.com/
> 


transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent