DOM - Creating Documents

Ronald Bourret rbourret at
Fri Apr 23 09:43:19 BST 1999

Leigh Dodds wrote:

> But that said, each of the listed methods presuppose the availability
> of an existing document, correct? Whereas I was initially concerned
> about the inability to generate a completely *new* document

The methods Michael Kay listed create documents from a SAX InputSource. 
 The methods I listed are the ways to create a completely new document, 
which is what you originally requested.  Because Docuverse's methods 
require the root element type, it seems any generic method should accept 
this as an argument and return a Document.  (Missing from my list was how 
to create a new Document with IBM's xml4j.  As Jeff Greif pointed out, you 
simply use the constructor on TXDocument.)

> , but
> it has been demonstrated to me that this involves some implementation
> specific bootstrapping. And from the later discussions all I gather
> the W3C *could* specify is some standard registry/property keys/values
> that would feed into this bootstrapping mechanism. Would that
> be a fair assessment of the situation?


-- Ron Bourret

xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev at
Archived as: and on CD-ROM/ISBN 981-02-3594-1
To (un)subscribe, mailto:majordomo at the following message;
(un)subscribe xml-dev
To subscribe to the digests, mailto:majordomo at the following message;
subscribe xml-dev-digest
List coordinator, Henry Rzepa (mailto:rzepa at

More information about the Xml-dev mailing list