Doctype replaved by Text
Introduced _assertNodeIs()
Added cdata and comment
Added cdata and comment
Added text, space and lf
Added text, space and lf
Added if
Refactored.
Added choose, when and otherwise