Hi,

I am trying to get the xsd annotations out of an xsd using xmlbeans.

Here is my xsd snippet:
<xs:element name="product-type">
    <xs:annotation>
      <xs:documentation> ProductTypes are cool</xs:documentation>
    </xs:annotation>
    <xs:complexType>
      <xs:sequence>
        <xs:element ref="inve:contributors"/>
      </xs:sequence>
    </xs:complexType>
  </xs:element>


The code should be:
SchemaAnnotation annotation = ProductTypeDocument.type.getAnnotation();

But this is null. I'm using XmlBeans 1.04, is there something else I'm
supposed to do?

Roshan Punnoose
Phone: 301-497-6039

BEGIN:VCARD
VERSION:2.1
N:Punnoose;Roshan
FN:Punnoose, Roshan
ADR;WORK:;2115
LABEL;WORK:2115
EMAIL;PREF;INTERNET:[EMAIL PROTECTED]
REV:20050413T183207Z
END:VCARD

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to