Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » Saved XMI is not valid by generated XSD problem.
Saved XMI is not valid by generated XSD problem. [message #1107133] Thu, 12 September 2013 02:10 Go to next message
Hiroki Kondo is currently offline Hiroki KondoFriend
Messages: 47
Registered: July 2009
Member
Hi,

I generated xsd file from ecore to validate XMI.

But in xsd, String attribute in the ecore is always set 'required'.
It occur validation error.

Why does the attribute always set 'required'?

I fix it by set 'Defalut Literal Value' at all String attribute and set the save option OPTION_KEEP_DEFAULT_CONTENT to be TRUE.

Best Regards,
Hiroki
Re: Saved XMI is not valid by generated XSD problem. [message #1107314 is a reply to message #1107133] Thu, 12 September 2013 08:26 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33137
Registered: July 2009
Senior Member
Kiroki,

You generated an XMI schema? Was the saved model valid according to the
Ecore model? What's the multiplicity of such an attribute in the Ecore
model?

On 12/09/2013 4:10 AM, Hiroki Kondo wrote:
> Hi,
>
> I generated xsd file from ecore to validate XMI.
>
> But in xsd, String attribute in the ecore is always set 'required'.
> It occur validation error.
>
> Why does the attribute always set 'required'?
>
> I fix it by set 'Defalut Literal Value' at all String attribute and
> set the save option OPTION_KEEP_DEFAULT_CONTENT to be TRUE.
> Best Regards,
> Hiroki


Ed Merks
Professional Support: https://www.macromodeling.com/
Previous Topic:[CDO] What could be the best way to implement a dynamic replay ?
Next Topic:[EMF/CDO] ResourceSet.getURIConverter().exists() does not return correct value because of no appropr
Goto Forum:
  


Current Time: Fri Apr 19 08:28:06 GMT 2024

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

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

Back to the top