tango.text.xml.DocTester

License:
BSD style:

Version:
Initial release: March 2008

Authors:
Kris

class DocTester(T);
Validate a document

TODO:
add various tests here, or in subclasses, as required

alias Doc;
the typed document

alias Node;
generic document node

void validate(Doc doc);
Generate a text representation of the document tree

void validate(Node node);
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);
Ensure attribute names are unique within the element

void error(const(char)[] format,...);
halt validation


Page generated by Ddoc. Copyright (C) 2008 Kris Bell. All rights reserved.