Look at the org.apache.xpath.domapi.XPathEvaluator classes and the
ApplyXPathDOM example that comes with Xalan.
Dana Cordes
[EMAIL PROTECTED]
"randy
locklair" To: [EMAIL PROTECTED]
<[EMAIL PROTECTED] cc:
iny.com> Subject: selecting from DOM tree
by XPath
12/02/2002
10:17 AM
Please respond
to
xerces-j-user
All:
I have a question which may be a very good one or a very bad one :) Is
there any way now, in the Xerces API (or some other open source
library), to select a node by XPath? For example:
Lets say you have a document..
Document docTest = // whatever;
Is there a way to do something like:
Node nodeSearch = docTest.searchByXPath("/root/child1/child2/element4");
(or I guess maybe it would return a NamedNodeMap or something since
there could be more than one element in that case?)
Let me know..
If there's not I might give it a shot writing one.
Thanks,
Randy
"Swiss American Securities Inc. MMS <sasiny.com>" made the following
annotations on 12/02/02 13:19:38
------------------------------------------------------------------------------
[ALERT] -- Access Manager:
DISCLAIMER: This e-mail contains proprietary and confidential information
some or all of which may be legally privileged. It is intended only for the
stated addressee(s) and access to it by any other person authorized. If
you are not the intended recipient and an addressing or transmission error
has misdirected this e-mail, please notify the author IMMEDIATELY, by
replying to this e-mail, then delete this message and all copies from all
locations in your system. You should not use, disseminate, disclose,
distribute, copy, print, or rely on this e-mail: to do so may be unlawful.
Swiss American Securities Inc. ("SASI") and its affiliates reserve the
right to monitor all e-mail communications through their networks.
***Please note that this message may contain preliminary information
regarding transactions that have been executed for your account and are
subject to final confirmation.
==============================================================================
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]