|Analysis of XML Schema specific annotations, properties in Resource Impl. [message #598099]
||Fri, 19 May 2006 10:29
Registered: February 2010
I tried the serialization of XML Schema based (annotated) Ecore models.
I tried this using the XMLResource.OPTION_EXTENDED_META_DATA option (and
all other generated options) in the generated RessourceFactory.
The result was an xml instance of the Schema which differentiates between
attributes and elements as specified in the schema (example: nested
elements specified in the schema are serialized as nested elements in the
XML instance of the schema).
After commenting out of XMLResource.OPTION_EXTENDED_META_DATA (and all the
other options) all nested elements specified in the schema were serialized
as attributes in a resulting xml instance of the schema.
On the other hand, I found no checks of xml schema defined restrictions
(like "minOccurs", "maxOccurs", "xmlns" for any) for the serialization of
instances of the XMLSchema. Did I something wrong?
... Or results the option OPTION_EXTENDED_META_DATA only in analysis of
the Annotation "kind" of the Ecore model ... and nothing more?
Thank you very much! (And thank you for your last very fast (and helpful)
Powered by FUDForum
. Page generated in 0.02170 seconds