DOM - Creating Documents

John Cowan cowan at locke.ccil.org
Wed Apr 21 16:04:48 BST 1999


Leigh Dodds wrote:

> Erm, so you're saying that
> 
> interface Document : Node {
>         Document        createDocument{} raises {DOMException}
> }
> 
> isn't valid CORBA syntax and so thats why its not been
> included?

Not at all.  But what such a method would do is to allow you
to create a new Document, *given an existing Document*.  It
doesn't help unless you already have a Document to apply the
method to.  IDL has no concept of "static" or "class" methods.

A plausible alternative would be to put createDocument() into
the DOMImplementation interface, but this just pushes off the
problem: how does one get an instance of DOMImplementation?
This is the "infinite regress" Miles mentioned.

-- 
John Cowan	http://www.ccil.org/~cowan		cowan at ccil.org
	You tollerday donsk?  N.  You tolkatiff scowegian?  Nn.
	You spigotty anglease?  Nnn.  You phonio saxo?  Nnnn.
		Clear all so!  'Tis a Jute.... (Finnegans Wake 16.5)

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




More information about the Xml-dev mailing list