xml-general mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Don Brutzman <brutz...@nps.navy.mil>
Subject Re: Question about document type nodes and JAXP
Date Tue, 17 Oct 2000 00:51:38 GMT
Eric Hodges wrote:
> I'm still trying to add a DocumentType from to a Document.

I just worked around this using JAXP by creating a dummy document 
of the right type and then reading it in.

This restriction is probably a limitation because:

interface Document : Node {
  readonly attribute DocumentType     doctype;

So it would appear that DOM Level 2 doesn't expect anyone to create
an XML document using DOM, just to read and modify it...

all the best, Don
Don Brutzman  Naval Postgraduate School, Code UW/Br Root 200  work 831.656.2149
              Monterey California 93943-5000 USA              fax  831.656.3679
Virtual worlds/underwater robots/Internet     http://web.nps.navy.mil/~brutzman

View raw message