Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » XML Schema Definition (XSD) » annotations of schema returning null
annotations of schema returning null [message #599246] Wed, 13 December 2006 13:02
Eclipse UserFriend
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: Fri Apr 19 22:55:57 GMT 2024

Powered by FUDForum. Page generated in 0.02757 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top