Posts

Showing posts with the label xmlbeans

How to read Xsd-Annotations from Xsd-Schema using Apache XMLBeans?

Image
Clash Royale CLAN TAG #URR8PPP How to read Xsd-Annotations from Xsd-Schema using Apache XMLBeans? I read a xsd-schema file using Apache XMLBeans , iterating over all SchemaProperties beginning with the root element. At each SchemaProperty I am looking for an annotation with: schemaProperty.getType().getAnnotation() , but I don't find any annotation. (java code below) I examine for example the following xsd-file: Figure of xsd structure: Xsd source code: <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" attributeFormDefault="unqualified"> <xs:element name="ExterneDaten" type="ExterneDaten"> <xs:annotation> <xs:documentation>annotation for ExterneDaten</xs:documentation> </xs:annotation> </xs:element> <xs:complexType name="ExterneDaten"> <xs:annotation> <xs:documentation>annotation for Type ExterneDa...