Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Problem with loadXML and ADO

From: GeorgeB@-----------.---------.---
To: NULL
Date: 6/1/2005 5:28:00 AM
I create a XML file with ADO filled with data from a SQL database table and I 
use
rsXML.Open sSQL, cnDB
rsXML.SAVE Dir1.Path & "\" & "Products.xml", adPersistXML
rsXML.Close

When I try to send the file I get an error that it is not well formed and 
has an error in line 1

    Dim xmlhttp1 As New MSXML2.XMLHTTP40
    Dim doc As New MSXML2.DOMDocument40
    
    xmlhttp1.Open "GET", "HTTP://localhost/test.asp", False
    
    doc.loadXML Dir1.Path & "\" & "Products.xml"
    If doc.parseError.errorCode Then
        MsgBox doc.parseError.reason & " " & doc.parseError.Line
        ' Do something with the error.
    End If

    xmlhttp1.send doc
    MsgBox xmlhttp1.responseText

The goal of this code is to upload the xml file to an IIS server
Any ideas about how to solve this problem?



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