Records information associated with namespaces at a DOM node.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
prefixForNamespace(self,
namespace)
Return a prefix associated with the given namespace in this context,
or None if the namespace is the default or is not in scope. |
source code
|
|
|
|
|
|
|
|
|
|
| finalizeTargetNamespace(self,
tns_uri=None,
including_context=None) |
source code
|
|
|
|
__init__(self,
dom_node=None,
parent_context=None,
including_context=None,
recurse=True,
default_namespace=None,
target_namespace=None,
in_scope_namespaces=None,
expanded_name=None,
finalize_target_namespace=True)
Determine the namespace context that should be associated with the
given node and, optionally, its element children. |
source code
|
|
|
|
|
|
|
|
|
Inherited from object:
__delattr__,
__format__,
__getattribute__,
__hash__,
__new__,
__reduce__,
__reduce_ex__,
__repr__,
__setattr__,
__sizeof__,
__subclasshook__
|