users@jaxb.java.net

Re: JAXB generated Java Model + JXPath

From: Kohsuke Kawaguchi <Kohsuke.Kawaguchi_at_Sun.COM>
Date: Wed, 03 Aug 2005 16:54:39 -0700

Dmitri Colebatch wrote:
> I imagine it would have to be a subset of XPath. It would be very
> ineffecient to do the follwoing:
>
> .//Foo[name='bar']

Right. Unless you mess with the code generation process, the parent axis
won't work because there's no parent pointer in the generated code.


> But more straightforward queries would be very doable I would think -
> wouldn't even need to be a JAXB plugin, just use the same annotations.

+1.


-- 
Kohsuke Kawaguchi
Sun Microsystems                   kohsuke.kawaguchi_at_sun.com