OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

 


 

   Re: DOM - Creating Documents

[ Lists Home | Date Index | Thread Index ]
  • From: John Cowan <cowan@locke.ccil.org>
  • To: XML Dev <xml-dev@ic.ac.uk>
  • Date: Wed, 21 Apr 1999 10:04:06 -0400

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@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@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@ic.ac.uk the following message;
(un)subscribe xml-dev
To subscribe to the digests, mailto:majordomo@ic.ac.uk the following message;
subscribe xml-dev-digest
List coordinator, Henry Rzepa (mailto:rzepa@ic.ac.uk)





 

News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS