PRB: Using XPath to Query Against a User-Defined Default Namespace (288147)
The information in this article applies to:
- Microsoft XML 3.0
- Microsoft XML 3.0 SP1
- Microsoft XML 4.0
This article was previously published under Q288147 SYMPTOMS
When you redefine the default namespace in the XML document, change the internal SelectionNamespaces property for the default namespace, and then try to programmatically use XPath to return nodes by using the selectNodes or selectSingleNodes method, no nodes are returned.
RESOLUTION
Either use prefixes with the namespaces when you specify the SelectionNamespaces property, or use Extensible Stylesheet Language (XSL) pattern-matching operations instead of XPath.
Modification Type: | Major | Last Reviewed: | 10/12/2001 |
---|
Keywords: | kbDSupport kbprb KB288147 kbAudDeveloper |
---|
|