I don't know why ns_xml or tDom would be that important for output. We want to generate xhtml from adp files and that is
more or less xml as well and I don't think we would ever
consider constructing it in ns_xml rather than by just
appending a huge string.