String xpath = "descendant-or-self::id";
for (Iterator<Pointer> it = context.iteratePointers(xpath); it
.hasNext();) {
it.next().setValue(null);
}
HTH,
Matt
--- On Wed, 2/11/09, Adrian Mitev <[email protected]> wrote:
> From: Adrian Mitev <[email protected]>
> Subject: [JXPath] Set a property in the whole graph
> To: [email protected]
> Date: Wednesday, February 11, 2009, 5:43 AM
> Hi all! I'm new to JXPath. Is there an easy way to
> traverse the entire
> object graph and set all properties with name 'id'
> to null? Could not
> find something similar in the user's guide.
>
> --
> Although nobody can come back and make a new start, anyone
> can start
> now and make a new end
>
> ---------------------------------------------------------------------
> 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]