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

 


Help: OASIS Mailing Lists Help | MarkMail Help

 


 

   Re: Confusion while implementing the DOM.

[ Lists Home | Date Index | Thread Index ]
  • From: Andrew Douglas <andrew.douglas@netcentric-solutions.com>
  • To: xml-dev@ic.ac.uk
  • Date: Wed, 2 Jun 1999 13:24:57 +0100 (BST)


Miles Sabin <msabin@cromwellmedia.co.uk> wrote:
> Ahh ... no, I'm afraid that's not quite right. The DOMs
> idea of the structure of your document would be,
>...
> 
> I hope that helps a bit ...

Yes, it does.  For some reason, it took me a while to sort out what it
all meant, and I came to the right conclusion.  I then got confused, and
thought it could be much simpler (of course, the effort involved is almost
nil for getting what I've got, and it is all needed, so it isn't a problem).

rja@arpsolutions.demon.co.uk wrote:
> Fragements dont exist in part of the document DOM, only as stand alone
> collection of elements.
>...
> If your following the standards, these should always return a node.

The standard I've got states that a DocumentFragment is a Node (or at least,
it does in the Java headers I've got).  That was my mistake, I think.

rja@arpsolutions.demon.co.uk wrote:
> Silly question but why write a DOM when you can get them for free or very
> cheaply ?

Funny, you're not the first person to ask me this.

OK, I want to store XML documents in an oo-database, so I'm implementing
my own XML implementation which uses a particular database.  The documents
are stored in the DOM (not as text documents), and there is also some
structure built on top (so we have links between documents, links back to
the DTD to ensure validity, links to pages which render documents to HTML,
and stuff like that).

Documents are generated automatically from a DTD, so the structure is
already there, and can be displayed in a form-like way.  Change the DTD, and
the document should change accordingly.

Plus, it seemed like fun and a good way of learning how it all fits in
(although perhaps getting and playing with an existing DOM implementation
would be a good idea).

Thanks for confirming my suspisions,
A.
---------------------------------------------------------------------
Andrew Douglas,               andrew.douglas@netcentric-solutions.com
Netcentric, Unit 3, Copley Hill Farm,Cambridge Road,Cambridge,CB2 4AF
http://dougie1111.ecode.com/ ;-)


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