Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to Use VBScript to parse XML

Status
Not open for further replies.

zazson

Programmer
Nov 2, 2001
1
US
I have several hundred XML files that need to be copied to directories that correspond with their names (a.b.c.1.2.xml -> c:\a\bc\c1\2\2.xml). That is easy enough, but I each XML file also contains elements that describe files related to itself and which need to be copied to the same directory as the XML. I've read through MSDN and tried to implement several of their examples with 'script' and 'MSXML2' and all of the fail with "object required" as if WSH can't create an instance of the XMLDOM. Is it possible to parse XML with VBScript? If so could someone provide an example, please?
 
There's some good stuff about this at but remember to change server.createobject to just createobject when converting ASP to VBScript C:\DOS:>
C:\DOS:>RUN
RUN DOS RUN!!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top