Using XMLReader in VBS

Hello everyone,

I would like to read/write values from an XML File via VBScript. It works fine with XMLDocument (https://msdn.microsoft.com/de-de/library/System.Xml.XmlDocument(v=VS.110).aspx) but it is to slow (about 12500 values which takes 10-20sec). So I wanted to use the XMLReader/XMLWriter (https://msdn.microsoft.com/de-de/library/System.Xml.XmlReader(v=VS.110).aspx)instead to find out whether this is any faster. I wasnt able to use it in VBs and I didn't find any examples on how to use it. 

Can you help me with a little example? Or doesnt XMLReader/Writer work in VBs at all?

Thank you.

September 8th, 2015 3:58am

XML Reader is what loads XMLDocument.  It won't beany faster.

You need to use XPath and PowerShell will be many times faster than VBS.  XPath uses and indexed read.  It is optimized in the Net Framework.

Free Windows Admin Tool Kit Click here and download it now
September 8th, 2015 10:54am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics