tango.text.xml.DocTester

License:

BSD style: see license.txt

Version:

Initial release: March 2008

Authors:

Kris
class DocTester(T) #
Validate a document

TODO:

add various tests here, or in subclasses, as required
alias Document!(T) Doc [private] #
the typed document
alias Doc.Node Node [private] #
generic document node
void validate(Doc doc) [final] #
Generate a text representation of the document tree
void validate(Node node) [final] #
Generate a representation of the given node-subtree
void element(Node node) #
validate an element
void attribute(Node node) #
validate an attribute
void data(Node node) #
validate a data node
void comment(Node node) #
validate a comment node
void pi(Node node) #
validate a pi node
void cdata(Node node) #
validate a cdata node
void doctype(Node node) #
validate a doctype node
void uniqueAttrNames(Node node) [static] #
Ensure attribute names are unique within the element
void error(char[] format, ...) [static] #
halt validation