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

Re: XML-QL

  • From: Chris von See <cvonsee@o...>
  • To: xml-dev@i...
  • Date: Mon, 31 Aug 1998 07:21:46 -0500

download xml document
> Robert Hansen wrote:
>
>As a programmer though, I see a few ways on how it could be implemented...
>1. Matches could be made on the XML as a stream., and return it as such.  So
>you invoke a method on the Query control which asks for a single match.  The
>application would that find the first match and return only that one. From
>there you could recursively ask for the next match.

The SQL cursor mechanism is perfect for this - it  would allow you to
select a solution set of elements from an XML document, and then iterate
through them one at a time.  Having such a mechanism would also allow you
to retrieve a set of elements, do some selective editing (i.e.
INSERT/UPDATE/DELETE WHERE CURRENT OF in cursor parlance) and then put the
elements into a new document.

Having a cursor mechanism would be a huge benefit to XML-QL.

>
>2. Return all of the matches in a single action as a single XML document.
>The problem is that if the XML document is very long, this could take some
>time (even days... if the XML document was big enough).

Cursors could solve this as well, I think.

>Does anyone have any thoughts on this??  I was actually thinking about
>creating a search application based on the current XML-QL note, and have not
>decided on how the interface should work.  For those familiar with
>Microsoft's ADO control, I was thinking something like that.  In which case,

You might be better off creating something akin to Microsoft's ODBC driver
mechanism, where you could not only issue queries against documents but
also retrieve info about the document's metadata (like the SQL_COLUMNS and
SQL_TABLES mechanisms in ODBC).  Also, an ODBC-like mechansim would be much
better suited to use on non-Windows systems.



Chris von See

------------------------------------------------------
"Don't *say* things.  What you *are* stands over you the while, and
thunders so that I cannot hear what you say to the contrary."
                  

--- Emerson, "Social Aims"

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/
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.