HTML to XML yet again

Hi, I'm using Tidy to convert HTML to XML.  I've read the other posts and
still do not understand why Tidy does certain things:

1) Why does Tidy insert a <!DOCTYPE HTML ...> element when I specify
output-xml:yes and doctype:omit?  The only way I can eliminate this is to
use the output-xhtml:yes and doctype:omit.

2) Why doesn't Tidy escape the character entities in text nodes as default
behavior for output-xml since that is required for well-formed XML?  I read
David Ragget's response
(http://lists.w3.org/Archives/Public/html-tidy/2000JulSep/0310.html), but
shouldn't the character entities (&,<,>) be escaped under any text node for
legitimate XML output?  You could also go CDATA, but that seems to be
modifying the original document structure.  

Thanks,
Mike

Received on Monday, 6 November 2000 16:07:15 UTC