You are viewing a plain text version of this content. The canonical link for it is here.
Posted to xindice-users@xml.apache.org by Florin Tudor <fl...@sap.ro> on 2002/05/23 13:56:37 UTC

XPath queries in Xindice

----- Original Message ----- 
From: "Ciprian Popovici" <ci...@sap.ro>
To: <fl...@sap.ro>
Sent: Thursday, May 23, 2002 2:54 PM
Subject: despre xpath


> ============
> This may be a little OT, but I wonder if something can be done about
> it in respect to Xindice: whenever I select something with XPath it
> returns the matching elements PLUS all their children. If I need some
> elements high in the XML tree I will practically get most of the
> document included in the query result. 

   Is there a way to restrict the
> result to just the matching elements _wihtout_the_children_? Yes, I
> know it would not be the full correct XML, but returning everything
> when I only need the very elements I'm looking for seems like a waste.
> It seems as though the "self" axis should do this (//CD/self::*) but
> it doesn't.
> ============
> 
> --Ciprian Popovici

Florin Tudor

Web Application Developer / Consultant
Middleware & Programming Dept.
Integrator /SAP Romania
www.sap.ro, www.integrare.ro