Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

XMLDocument.DocType returns nothing???

Status
Not open for further replies.

Dodgey

Programmer
Apr 17, 2001
33
AU
I was wondering if anyone could tell me why the following code returns nothing to the g_RootNode variable when I include the DT declaration within my XML?? If I don't include the DTDeclaration, I do get the documentElement (<DATAROOT>). The best guess I have is that the parser is unable to validate the g_xmlDoc against the DTD. If this is so, how could I trap this? Could someone please help?

Here is the script:
...
Dim g_xmlDoc
Set g_xmlDoc = CreateObject(&quot;MSXML.DOMDocument&quot;)
g_xmlDoc.loadxml(URLDecode(Request.Form.Item(1)))
Set g_RootNode = g_xmlDoc.documentElement
...


Here is the header of the xml document:

<?xml version=&quot;1.0&quot;?>
<!DOCTYPE DATAROOT SYSTEM &quot;<DATAROOT>
<NEWBUSINESS>
...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top