Welllll thats not exactly true.
It is not commonly done but you can create a document by creating a sequence of SAX events being fed to an event handler that simply writes them to output.
Harold's
chapter 8 on SAX processing gets into this to some extent.
Manipulating SAX events is the basis for "pipeline" processing of XML documents. I cite several toolkits in
this survey article. Note that the SAX approach takes MUCH less memory and CPU time than the DOM approach.
Bill
[ April 22, 2008: Message edited by: William Brogden ]