Title: RE: Xpath across a network
Chris,
 
Thanks for the suggestion.  I have been pondering something similar, but I have a couple of issues:
 
1) I don't want to recreate a query language if I don't have to.  Xpath meets all requirements -- I just need to de-couple the results from the "mother ship" as mentioned prior.  Now changing the result of the xpath query to XML before returning it across the wire would be possible.  I am looking for a method on the Node, NodeList, or NodeIterator interfaces that will create xml out of the contents...but am not finding any.  I suppose this will all have to be done manually?
 
2) I would prefer not to propogate a parsing requirement to my client, rather move an object structure (great thing about RMI).  The NodeList or NodeIterator would be fine, just as long as they were detached from the source -- I do not want to push more data across the wire than need be.  Is there a way to detach these?  Surely others out there have a similar requirement...
 
BradO
-----Original Message-----
From: Christopher Raber [mailto:[EMAIL PROTECTED]
Sent: Monday, September 24, 2001 11:36 AM
To: '[EMAIL PROTECTED]'; 'Xalan (E-mail)'
Subject: RE: Xpath across a network

Instead of an XPATH interface, how about an XML/RPC based service? The incoming request could be a XML structure describing the query, and the result could be the XML tree that matches and nothing more.

-----Original Message-----
From: Brad O'Hearne [mailto:[EMAIL PROTECTED]]
Sent: Monday, September 24, 2001 2:24 PM
To: Xalan (E-mail)
Subject: Xpath across a network

Hello all,

I asked a question not too long ago that was up this same alley, but I have
a more direct question that perhaps you can help with.

I have xml data on a server, stored as a DOM, and I need to expose to a
client the ability to query the document.  XPath seems the perfect
interface.  However, I am concerned that if a client performs an XPath
query, the resulting data returned won't be only the nodelist, but a whole
bunch of other unnecessary info and data structures that the nodes reference
(like potentially the entire DOM).  I am not totally sure about that, but my
last post about this suggested strongly that resulting nodes from an XPath
queries had underpinnings to the "mother ship", if you will.

So...any advice on how to allow clients to query a remote DOM, and receive
only the actual results across the wire?

Thanks in advance!

BradO

-----------------------
"It's such a fine line between clever and stupid."  -- David St. Hubbins,
Spinal Tap
-----------------------
Brad O'Hearne
Software Scientist
Irvine, CA  92618
949.743.5121 Tel
949.753.7434 Fax
[EMAIL PROTECTED]

Reply via email to