Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: simple xml output

From: "Tom" <buckit@--------------.--->
To: NULL
Date: 2/7/2008 8:49:00 AM

Anthony, Yes we're using ServerXMLHTTP.  What I want to do though is to take 
the contents of what I've already opened from a file using...
set xml = Server.CreateObject("Microsoft.xmlDOM")

xml.async = false

xml.load(Server.MapPath("Hit-Response.xml"))

...and write the entire document to a database table. The field in the 
database should then contain <?xml version="1.0" encoding="utf-8" 
?><Response Version="1.1" ReportDate="2007-07-31" 
TransactionID="fitu0goACqQAACLtbbsAAAAC" StatusCode="1" 
ClientReferenceNumber="987654321" StatusDescription="Success">...all other 
child nodes...</Response>



"Anthony Jones" <Ant@y...> wrote in message 
news:eL4rlMWaIHA.1960@T......
> "Tom" <buckit@n...> wrote in message
> news:OJZUXzRaIHA.208@T......
>> I'm working on an ASP app that typically uses XMLHTTP.responseText to
> write
>> a received XML document to a database.
>>
>> I'm doing some new testing and need to just write a raw xml file (loaded
>> from a file) to a database field.
>>
>> Is there one method or property that can output the entire document tags
> and
>> all in one stream?
>>
>
> Typically the server sending the XML should be setting the content type
> header to text/xml or application/xml.  When this content type is present
> the XMLHTTP object will parse the XML into DOM which you can retrieve as
> ResponseXML.
>
> The DOM Document object has a Save method to which you pass a string
> containing a file path.
>
> BTW, you're actually using ServerXMLHTTP right? XMLHTTP isn't recommend 
> for
> use with in ASP.
>
> -- 
> Anthony Jones - MVP ASP/ASP.NET
>
> 




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