On 12/06/2010 08:09 PM, Daniel Kulp wrote:
On Monday 06 December 2010 6:20:51 am Bruno Dusausoy wrote:

[...]

By the way, can someone tell me why the aforementioned solution works ?
Why must I add "/xs:complexType" at the end of the XPath expression ?

I like to know the why's :).

Well, in JAXB, the generated classes represent the TYPES in the schema.   You
can have JAXB also generate classes for the Elements (that would then subclass
JAXBElement), but normally the generated code just represents the types.  The
complexType thing above makes the customization properly apply to the type.


Thanks for the explanation.

--
Bruno Dusausoy
YP5 Software
--
Pensez environnement : limitez l'impression de ce mail.
Please don't print this e-mail unless you really need to.

Reply via email to