Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » XML Schema Definition (XSD) » Analysis of XML Schema specific annotations, properties in Resource Impl.
Analysis of XML Schema specific annotations, properties in Resource Impl. [message #598099] Fri, 19 May 2006 10:29
Mathias  is currently offline Mathias Friend
Messages: 7
Registered: February 2010
Junior Member
Hi,
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)
answer!!!)

Mathias
Previous Topic:One element -> multiple types ?
Next Topic:Analysis of XML Schema specific annotations, properties in Resource Impl.
Goto Forum:
  


Current Time: Thu Apr 25 11:41:31 GMT 2024

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

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

Back to the top