Hi Jing, The annotation is available on the XSMultiValueFacet for the enumeration. This is accessible from the XSSimpleTypeDefinition. See [1] and [2] for more info.
Thanks. [1] http://xerces.apache.org/xerces2-j/javadocs/xs/org/apache/xerces/xs/XSSimpleTypeDefinition.html#getMultiValueFacets() [2] http://xerces.apache.org/xerces2-j/javadocs/xs/org/apache/xerces/xs/XSMultiValueFacet.html#getAnnotations() Michael Glavassevich XML Parser Development IBM Toronto Lab E-mail: [EMAIL PROTECTED] E-mail: [EMAIL PROTECTED] "Jing Yang" <[EMAIL PROTECTED]> wrote on 05/09/2007 09:42:52 AM: > Is it possible to use schema API for retrieving the enumeration's > annotation ?(see below) > How to do it ? > > <xsd:simpleType name="TestType"> > <xsd:restriction base="xsd:string"> > <xsd:enumeration value="A"> > <xsd:annotation> > <xsd:appinfo> > <DataType>string</DataType> > <Explanation>XXX</Explanation> > > </xsd:appinfo> > </xsd:annotation> > </xsd:enumeration> > </xsd:restriction> > </xsd:simpleType> > > > Thanks, > > Jing > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]