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("MSXML.DOMDocument"
g_xmlDoc.loadxml(URLDecode(Request.Form.Item(1)))
Set g_RootNode = g_xmlDoc.documentElement
...
Here is the header of the xml document:
<?xml version="1.0"?>
<!DOCTYPE DATAROOT SYSTEM "<DATAROOT>
<NEWBUSINESS>
...
Here is the script:
...
Dim g_xmlDoc
Set g_xmlDoc = CreateObject("MSXML.DOMDocument"
g_xmlDoc.loadxml(URLDecode(Request.Form.Item(1)))
Set g_RootNode = g_xmlDoc.documentElement
...
Here is the header of the xml document:
<?xml version="1.0"?>
<!DOCTYPE DATAROOT SYSTEM "<DATAROOT>
<NEWBUSINESS>
...