Altova Mailing List Archives>Archive Index >microsoft.public.xml Archive Home >Recent entries >Thread Prev - Re: simple xml output [Thread Next] Re: simple xml outputTo: NULL Date: 2/8/2008 8:54:00 AM
"Tom" <buckit@n...> wrote in message
news:OxOotAZaIHA.1204@T......
> 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
>>
>>
>
>
What database are you using?
--
Joe Fawcett (MVP - XML)
http://joe.fawcett.name
| ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
