create_ns_resolver method
create_ns_resolver
Adapts any DOM node to resolve namespaces so that an XPath expression can be easily evaluated
relative to the context of the node where it appeared within the document. This adapter works
like the DOM Level 3 method lookupNamespaceURI
on nodes in resolving the namespaceURI
from a given prefix using the current information available in the node’s hierarchy at the time
lookupNamespaceURI is called, also correctly resolving the implicit xml prefix.
Returns
IXPathNSResolver
which resolves namespaces with respect to the definitions in scope for a specified node.
def create_ns_resolver(self, node_resolver):
...
Parameter | Type | Description |
---|---|---|
node_resolver | Node | The node to be used as a context for namespace resolution. |
See Also
- module
aspose.html.dom.svg
- class
IXPathNSResolver
- class
SVGDocument