Altova Mailing List Archives>Archive Index >microsoft.public.xml Archive Home >Recent entries >Thread Prev - XML - VBScript issues (loading xml doc) please help! [Thread Next] Re: XML - VBScript issues (loading xml doc) please help!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.
| ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
