NameSpace in MSXML2.DOMDocument

  • 15 years ago

    Hello,
    Can anybody know why MSXML2.DOMDocument can perform XPath search on undeclared nameSpace?


    Example Debug.Print domDoc.selectNodes("//my:field1").Length works fine
    but MSXML2.DOMDocument50 not worked. I must use  domDoc.setProperty "SelectionNamespaces" ...


    This nameSpace already declared in xml file. Why i need to declare it by domDoc.setProperty?
    Why MSXML2.DOMDocument50 not worked as MSXML2.DOMDocument?

Post a reply

No one has replied yet! Why not be the first?

Sign in or Join us (it's free).

Contribute

Why not write for us? Or you could submit an event or a user group in your area. Alternatively just tell us what you think!

Our tools

We've got automatic conversion tools to convert C# to VB.NET, VB.NET to C#. Also you can compress javascript and compress css and generate sql connection strings.

“Any fool can write code that a computer can understand. Good programmers write code that humans can understand.” - Martin Fowler