Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: XML - VBScript issues (loading xml doc) please help!

From: jdzurek@---.---
To: NULL
Date: 5/3/2007 1:47:00 PM

On May 1, 11:16 am, jdzu...@usw.org wrote:
> i dont know if its my computer or what... but I cant get the below
> code to work... when i do the WScript.echo xmlfile.xml.. to view the
> content of the xml file it returns a blank box. But if you run the
> program on my boss' computer it works fine. I'm also getting an error
> code: 800A01A8 on the last line of the code. " Object Required" which
> i have no clue how to solve this problem either.. I've downloaded
> every XML update and whatnot available on Microsoft's website and
> still have the same problems... yet it works on my boss' computer....
> please help.... any suggestions?
>
> Option Explicit
>
> Dim xmlFile, xmlConfig, Xsep
>
> Set xmlFile= CreateObject("MSXML2.DOMDocument.3.0")
>
> xmlfile.load "C:\BankingTs\Transcrypt.xml"
>
> WScript.echo xmlFile.xml
>
> Set xmlconfig = xmlfile.documentElement
>
> Set XSep = xmlconfig.SelectSingleNode("//Setup/Separator")
> wscript.echo XSep.text
>
> thanks!

I figured out the problem never mind....there was an unmatched tag in
the xml file ...therefore an error in the xml file resulted in the
inability of the function to load the xml file.



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