Skip to main content

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 13:02
Eclipse UserFriend
Originally posted by:

I have a valid Schema and the following code:

List anotacions = xsdSchema.getAnnotations();"anotacions" + anotacions.size());

for(Iterator iter= anotacions.iterator() ; iter.hasNext();){
XSDAnnotation anotacio = (XSDAnnotation);"Info aplicació " + anotacio);

I have 2 annotations and the "anotacions" + anotacions.size()); prints me
the number 2. Till here

But this"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:appinfo>Instancia 2 </xs:appinfo>
<xs:documentation xml:lang="ca">Esquema de la

thanks a lot.
Previous Topic:URIConverter question.
Next Topic:convert ecore to xsd
Goto Forum:

Current Time: Tue Jun 19 09:03:52 GMT 2018

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

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

Back to the top