WinBatch® Technical Support Forum

All Things WinBatch => WinBatch => Topic started by: weissenb on August 09, 2013, 01:09:25 AM

Title: XML problem
Post by: weissenb on August 09, 2013, 01:09:25 AM
Hello!
I need help because I want to use the "Parsing XML Using Msxml2.DOMDocument.4.0" (http://techsupt.winbatch.com/webcgi/webbatch.exe?techsupt/nftechsupt.web+WinBatch/XML/MSXML+Parse~XML~File~Using~MSXML.txt).

If I try the script the following error appears:
"Error Code:-1072896660
Reason: The specified attribute was not expected at this location.
The attribute may be case sensitive.
Line: 1 Column: 7
Text: <?xml Versions" 1.0" encoding="ISO-8859-1" ?>"

Thank you very much for any help!

Christian Weissenberger
Title: Re: XML problem
Post by: JTaylor on August 09, 2013, 06:23:32 AM
The problem is what it says....change "Version" to "version".

Jim
Title: Re: XML problem
Post by: Deana on August 09, 2013, 07:26:19 AM
Looks like the problem was with the capitalization of the first letter in 'Version'.

Change:
<?xml Version="1.0" encoding="ISO-8859-1" ?>
To:
<?xml version="1.0" encoding="ISO-8859-1" ?>

The XML has been updated in the tech article: http://techsupt.winbatch.com/webcgi/webbatch.exe?techsupt/tsleft.web+WinBatch/XML/MSXML+Parse~XML~File~Using~MSXML.txt