Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » XML Schema Definition (XSD) » annotations of schema returning null
annotations of schema returning null [message #599246] Wed, 13 December 2006 08: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.
Previous Topic:URIConverter question.
Next Topic:convert ecore to xsd
Goto Forum:
  


Current Time: Thu Aug 28 03:18:53 EDT 2014

Powered by FUDForum. Page generated in 0.07122 seconds