Quantcast
Channel: AutoIt v3 - General Help and Support
Viewing all articles
Browse latest Browse all 12506

_xmldocwrapper | Error: XML document must have a top level element.

$
0
0
Hi,

I receive the following error while using this dom doc wrapper on win7x64 system whereas the same works fine on two other win7x64 systems:
COM error with DOM
err.windescription: variable must be of type 'object'
err.number is: 0
err.scriptline is: 1710


I added a msgbox as follows:

if $DOMVERSION > 4 Then $objDoc.setProperty ("ProhibitDTD",false)
$objDoc.Load ($strFile)
$objDoc.setProperty ("SelectionLanguage", "XPath")
$objDoc.setProperty ("SelectionNamespaces", $strNameSpc)
MsgBox(0,"testtttttttttttttttttttttttttt",$objDoc.parseError.reason&@LF)
if $objDoc.parseError.errorCode >0 Then consoleWrite($objDoc.parseError.reason&@LF)

and I see this error msg: XML document must have a top level element.

Could someone please help here?

thank you very much

Viewing all articles
Browse latest Browse all 12506

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>