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 <adrian.mi...@googlemail.com> wrote:

> From: Adrian Mitev <adrian.mi...@googlemail.com>
> Subject: [JXPath] Set a property in the whole graph
> To: user@commons.apache.org
> 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: user-unsubscr...@commons.apache.org
> For additional commands, e-mail:
> user-h...@commons.apache.org


      

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@commons.apache.org
For additional commands, e-mail: user-h...@commons.apache.org

Reply via email to