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

RE: adding addressing capabilities to the DOM

  • From: Tyson Chihaya <Tyson@D...>
  • To: "'francis@r...'" <francis@r...>, www-dom@w...
  • Date: Fri, 21 Apr 2000 11:21:20 -0700

RE: adding addressing capabilities to the DOM
It seems to me that Joe is speaking more to the case where the DOM is
completely in memory.  As someone who has implemented a DOM on top of a
database, I have to agree with Francis here and say that providing a way to
delegate responsibility for evaluating XPaths (or other types of queries in
the future) into the implementation is vital.  In our implementation, we
take XPath queries (on any element node) and convert them into SQL
statements (and then create nodes that belong to the document on the way
back).  I'm not sure how we could have accomplished this otherwise.
Francis' point about not building a database query language into a database
engine is a good one.

I think I agree with Joe's third point:

> 3) It is unclear that a querying API actually belongs inside the DOM at
> all. One can argue that querying applies across document models -- one
> might wish to apply a query to a SAX stream, for example -- and thus it
may
> want an independent API, which DOM implementations could support but which
> might also be available in other contexts.

..which I think is saying that we might want a generic XPath API that DOM
implementations could support.  Although it almost seems as if an XPath API
would dictate that results be returned in a certain way-- as DOM nodes, as
SAX events (I'm really unclear about how a query interface for SAX would
work--sounds more like a filter than a query), etc.

--tyson

-----Original Message-----
From: Francis Norton [mailto:francis@r...]
Sent: Wednesday, April 19, 2000 4:09 AM
To: www-dom@w...
Cc: Xml-Dev@Xml. Org; www-dom@w...
Subject: Re: adding addressing capabilities to the DOM


Can someone explain this point to me?

keshlam@u... wrote:
...
> 
> 1) It is not particularly difficult to implement querying as an operation
> upon the DOM, rather than within the DOM. (Liveness issues are a
challenge,
> but DOM Level 2, via mutation events may address these, especially if
Level
> 3 adds "listener groups" as has been proposed.)
> 

I seen this point made before, normally as a response to the suggestion
that xpath be included in a future build of the DOM.

But it seems to me that there couldn't be a worse function to build
"upon", rather than "within" the DOM. Whatever the cost of crossing the
component boundary, will be multiplied by the cost, potentially, of
traversing the entire document data structure. Additionally, if any kind
of indexing is implemented then you are effectively replicating the
document's tree structure and values outside the DOM.

I'm not an expert in this area, so please tell me if I've misunderstood
the issues, but it strikes me as making as much sense as the case for
not building a database query language into a databse engine.

Francis.

***************************************************************************
This is xml-dev, the mailing list for XML developers.
To unsubscribe, mailto:majordomo@x...&BODY=unsubscribe%20xml-dev
List archives are available at http://xml.org/archives/xml-dev/
***************************************************************************

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.