__slots__=('_data', 'ownerDocument','parentNode', 'previousSibling', 'nextSibling')
"""Simple implementation of the Level 1 DOM.
Namespaces and other minor Level 2 features are also supported.
parseString("<foo><bar/></foo>")
* convenience methods for getting elements and text.
* bring some of the writer and linearizer code into conformance with this
from xml.dom import EMPTY_NAMESPACE, EMPTY_PREFIX, XMLNS_NAMESPACE, domreg
from xml.dom.minicompat import *
from xml.dom.xmlbuilder import DOMImplementationLS, DocumentLS
# This is used by the ID-cache invalidation checks; the list isn't
# actually complete, since the nodes being checked will never be the
# DOCUMENT_NODE or DOCUMENT_FRAGMENT_NODE. (The node being checked is
# the node being added or removed, not the node being modified.)
_nodeTypes_with_children = (xml.dom.Node.ELEMENT_NODE,
xml.dom.Node.ENTITY_REFERENCE_NODE)
class Node(xml.dom.Node):
namespaceURI = None # this is non-null only for elements and attributes
prefix = EMPTY_PREFIX # non-null only for NS elements and attributes