This is Interesting: Free Magazines for Graphics designers and webmasters
Home > Archive > Microsoft XML > May 2007 > XML - VBScript issues (loading xml doc) please help!
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
XML - VBScript issues (loading xml doc) please help!
|
|
| jdzurek@usw.org 2007-05-01, 6:18 pm |
| 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!
| |
| Joe Fawcett 2007-05-02, 6:16 am |
| As well as Martin's advice perhaps you don't have
"C:\BankingTs\Transcrypt.xml" on your machine or the account running the
code has insufficient access rights.
Anyway at least the problem is this way around, my normal one is that it
runs fine on my dev machine but not on my boss's :)
--
Joe Fawcett (MVP - XML)
http://joe.fawcett.name
<jdzurek@usw.org> wrote in message
news:1178032615.626426.125540@y5g2000hsa.googlegroups.com...
>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!
>
| |
| jdzurek@usw.org 2007-05-03, 6:16 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.
|
|
|
| | Copyright 2003 - 2008 forum4designers.com Software forum Computer Hardware reviews |
|