A generic Node, as in an XML document, but
also the base class for all xinf's SVG-like
While this is oriented on the SVG uDOM, there are some differences. There is currently no namespace support; parentNode is parentElement here; xinf currently doesn't support any other node types than Element, and there is no textContent.
This might change when xinf supports (re-)serialization of XML content. The Interface described here should stay the same.
See also: Node in SVG uDOM
Create a new, empty Node.
FIXME: should be associated to the root document?
De-serialize the node content and attributes from the given Xml.
You'll usually not call this. Instead, use Document.instantiate or .load.
Called after the Document has been fully loaded (not including external references like images) and the Node structure is set up. Provides a hook for deriving classes to initialize things that depend on the document structure to be fully set up.
This also calls onLoad on any child nodes.
newChild to the end
of the list of children of this node.
newChild into the list of
children of this node, immediately before
refChild.
oldChild from the list of children.
deep is true, any children will be
cloned, too. Else, the new Node is empty.
type, or null
if the parent is not of that type.