new v/s createObject ... IXMLDOMNodeList

C

cate

As a VBA rookie I'm drowning in my first "dip" into uS's XML pool.
That documentation is a challenge

I have included the reference to "uS XML, V6.0. As I understand it,
once the reference is established, I can use early binding with New.

The construct is:
Dim oDOM As DOMDocument60: Set oDOM = New DOMDocument60

It works great and auto sense is up and running too.

I'm using xpath to collect a node list, so I try to define the object
IXMLDOMNodeList with New. I can't.

I've look at a few examples and no one defines this object, they just
declare it and go on define it when the node list is actually ready.

set nodeList = oDOM .SelectNodes(xpath).

Why can't I use New with IXMLDOMNodeList? Does the constructor
require parameters? If I can't use New, then how would I know that by
looking at documentation? Please point out the obvious.

Also, is this the correct object to accept the node lists from
DOM.SelectNodes ?

Thank you.

Excel 2010, XPsp3
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top