annotations of schema returning null [message #599246] |
Wed, 13 December 2006 13:02 |
Eclipse User |
|
|
|
Originally posted by: mgonzalez.ibit.org
I have a valid Schema and the following code:
List anotacions = xsdSchema.getAnnotations();
log.info("anotacions" + anotacions.size());
for(Iterator iter= anotacions.iterator() ; iter.hasNext();){
XSDAnnotation anotacio = (XSDAnnotation)iter.next();
log.info("Info aplicació " + anotacio);
}
I have 2 annotations and the "anotacions" + anotacions.size()); prints me
the number 2. Till here
But this log.info("Info aplicació " + anotacio); prints me
(element: [xs:annotation: null]) (applicationInformation: [[xs:appinfo:
null], [xs:appinfo: null]],
userInformation: [[xs:documentation: null] ...)
Why prints me null when the annotation is like this
<xs:annotation>
<xs:appinfo>Instancia</xs:appinfo>
<xs:appinfo>Instancia 2 </xs:appinfo>
<xs:documentation xml:lang="ca">Esquema de la
Instancia</xs:documentation>
</xs:annotation>
thanks a lot.
|
|
|
Powered by
FUDForum. Page generated in 0.07027 seconds