when i try to run ApplyXPath thusly:
java ApplyXPath foo.xml /doc/[EMAIL PROTECTED]
foo.xml is the sample xml file included with the sample, and looks like this:
<doc>
<name first="David" last="Marston"/>
<name first="David" last="Bertoni"/>
<name first="Donald" last="Leslie"/>
<name first="Emily" last="Farmer"/>
....
</doc>
it returns empty output:
<output>
</output>
when it *should* return
<output>
<name first="David" last="Marston"/>
<name first="David" last="Bertoni"/>
</output>
or, am i missing something?
my reason for pointing this out (besides pedantry) is that i was hoping to
use this as the basis for a component of an application where i want return a
subtree from a larger document using an xpath query.
if someone has a snippet like that that works, i would appreciate it too.
many thanks
--e--
--------------------------------------------
<argo_tec gmbh>
ed.q.bridges
tel. 089-368179.552
fax 089-368179.79
osterwaldstra�e 10
(haus F eingang 21)
80805 m�nchen
</argo_tec gmbh>
--------------------------------------------