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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to