users@jaxb.java.net

Re: JAXB/XJC generated annotations and xs:documentation

From: Aleksei Valikov <valikov_at_gmx.net>
Date: Tue, 12 May 2009 20:18:54 +0200

Hi,

> Yeah. It also appears that xjc completely disregards comments that would be
> intended solely for class fields, providing no way to access them.
>
> Would it be possible to write an xjc extension that modifies the DOM tree of
> the incoming schema? That way I could duplicate the docs into xs:appinfo
> tags and parse them with the annotate plugin. The problem is that I don't
> have control over the schema, it's published by another entity; getting them
> to add custom appinfo tags for my application wouldn't be possible. If
> that's not possible, is it possible to override xjc's schema location
> resolver?

Have you considered using external binding files to attach custom elements?

Bye.
/lexi