[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Confusion while implementing the DOM.

  • From: Andrew Douglas <andrew.douglas@n...>
  • To: xml-dev@i...
  • Date: Wed, 2 Jun 1999 13:24:57 +0100 (BST)

implementing the dom html

Miles Sabin <msabin@c...> 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@a... 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@a... 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@n...
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@i...
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@i... the following message;
(un)subscribe xml-dev
To subscribe to the digests, mailto:majordomo@i... the following message;
subscribe xml-dev-digest
List coordinator, Henry Rzepa (mailto:rzepa@i...)



PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.