You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-users@xerces.apache.org by Igor Lobanov <il...@swsoft.com> on 2007/01/04 05:42:03 UTC

Re: Accessing annotated XML schema

Hi,

Stanimir Stamenkov wrote:
>> The question is whether there is a way to retrieve such "annotations" 
>> from the schema object model in a standard or a Xerces-specific way?
>> I havn't found any way to do it by studying XML Schema API offered by 
>> Xerces.
> 
> Unless I'm missing something you just access the annotations for a 
> specific component - see the |getAnnotations| and |getAnnotation| 
> methods of |XSElementDeclaration|, |XSAttributeDeclaration| etc. 
> interfaces <http://xerces.apache.org/xerces2-j/javadocs/xs/>.

Thanks, it works. I use XSAnnotation.writeAnnotation(..) to stream 
content through custom SAX content handler which extracts all required 
information.

-- 
Igor Lobanov
Internal Development Engineer
SWsoft, Inc.


---------------------------------------------------------------------
To unsubscribe, e-mail: j-users-unsubscribe@xerces.apache.org
For additional commands, e-mail: j-users-help@xerces.apache.org