validate an attribute
validate a cdata node
validate a comment node
validate a data node
validate a doctype node
validate an element
validate a pi node
Generate a text representation of the document tree
Generate a representation of the given node-subtree
halt validation
Ensure attribute names are unique within the element
Validate a document
TODO: add various tests here, or in subclasses, as required