users@jaxb.java.net

Re: XPath and JAXB

From: James Sheridan <james.sheridan_at_tecnomen.ie>
Date: Tue, 25 Feb 2003 07:34:35 +0000

Thanks Erik for the link. Looks very interesting at first glance.

-- James

-----Original Message-----
From: Erik Ostermueller [mailto:Erik.Ostermueller_at_alltel.com]
Sent: 24 February 2003 20:30
To: JAXB-INTEREST_at_JAVA.SUN.COM
Subject: Re: XPath and JAXB


Have you looked at JXPath?
http://jakarta.apache.org/commons/jxpath/

> -----Original Message-----
> From: James Sheridan [mailto:james.sheridan_at_fraysen.com]
> Sent: Monday, February 24, 2003 2:13 PM
> To: JAXB-INTEREST_at_JAVA.SUN.COM
> Subject: [JAXB-INTEREST] XPath and JAXB
>
>
> Hi,
>
> I am new to JAXB and am finding it extremely useful.
> However I have a
> problem. While in my code I don't want to have to parse
> or otherwise be
> aware of the underlying XML (this is why I'm using
> JAXB) I do have to
> find some elements using XPath expressions. From what I
> can see from
> code generated by JAXB there is no XPath navigation API
> included. I
> realise I could probably go the DOM+XPathAPI route but
> due to resource
> constraints (very large number of documents to manage)
> this approach
> (especially the DOM bit) is too heavyweight.
> My ideal would be JAXB to roll those nice Java classes
> and hide the XML
> and a related JAXB XPath API (I suppose this could use
> reflection to
> navigate the JAXB-generated classes, though there may
> be better ways).
> Anyway, does anyone know if JAXB supports or is
> planning to support an
> XPath API ?
>
> Many thanks in advance,
> James
>