Monday, July 08, 2002, 16:03:18, Erick Bri�re <[EMAIL PROTECTED]> wrote:
> The problem is (for me) Java: does some body has a simple example for
> doing that ? ("that" = get result of an xpath query, keep only required nodes,
> dropping children).

Not the full example, but the Xindice documentation has an XML Objects
example which can get you started:
http://xml.apache.org/xindice/DevelopersGuide.html#N2C8

You can change the "result" variable somewhere between the node list
creation and its transformation into a document:

NodeList result = XPathAPI.selectNodeList(target, xpath);
<insert your code here>
Document doc = new DocumentImpl();

--Ciprian Popovici

Reply via email to