Lists Home |
Date Index |
- From: Andrew Douglas <email@example.com>
- To: firstname.lastname@example.org
- Date: Wed, 2 Jun 1999 13:24:57 +0100 (BST)
Miles Sabin <email@example.com> 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).
> 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.
> 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,
Andrew Douglas, firstname.lastname@example.org
Netcentric, Unit 3, Copley Hill Farm,Cambridge Road,Cambridge,CB2 4AF
xml-dev: A list for W3C XML Developers. To post, mailto:email@example.com
Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/ and on CD-ROM/ISBN 981-02-3594-1
To (un)subscribe, mailto:firstname.lastname@example.org the following message;
To subscribe to the digests, mailto:email@example.com the following message;
List coordinator, Henry Rzepa (mailto:firstname.lastname@example.org)