You need predicates defined in square brackets. Simply stating the property checks for its existence:
//root/obj_level_1/[EMAIL PROTECTED] and not(@attr2) and not(@attr3)] This query would find all nodes with a property "attr1", but without a property "attr2" and "attr3". Regards, Alex On Wed, Jul 16, 2008 at 12:06 AM, MARTINEZ Antonio <[EMAIL PROTECTED]> wrote: > Hello, > > If I do query > > //root/obj_level_1/obj_level_2 > > I get all obj_level_2 objects, these containing all its attributes (say > attr1, attr2, attr3, ...) > > Is it possible to formulate a query to get all obj_level_2 objects with > a reduced # of attributes per object? I tried > > //root/obj_level_1/obj_level_2/@attr1 , trying to get all > obj_level_2 objects with only attr1, but I get the same result as with > the previous string > > Thanks, > Antonio > -- Alexander Klimetschek [EMAIL PROTECTED]
