Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » Element with empty(null?) namespace
Element with empty(null?) namespace [message #718794] Thu, 25 August 2011 11:23 Go to next message
Dennis sui is currently offline Dennis suiFriend
Messages: 35
Registered: February 2010
Member
Hi all,

I created an ecore model out of a xml-schema file.
The model works quit well, except of one issue.

If I try to use an element with an empty namespace, the tree-editor cannot be opened.

example:
<datamodel xmlns="www.knownData.de">
  <data>
    <test xmlns=""/>
  </data>
<datamodel>


<datamodel> and <data> are defined in the model but <test> is not.
If I define any other namespace, like xmlns="blablub", the Element will be loaded as "Any Type" and this is ok.
But without any String("") I get an "FeatureNotFoundException".

I hope my explanation isn't totally confusing and somebody can help me :-)

greetings
Sui
(no subject) [message #718909 is a reply to message #718794] Thu, 25 August 2011 15:28 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33142
Registered: July 2009
Senior Member
Sui,

Comments below.

On 25/08/2011 4:23 AM, suithedoc wrote:
> Hi all,
>
> I created an ecore model out of a xml-schema file.
> The model works quit well, except of one issue.
>
> If I try to use an element with an empty namespace, the tree-editor
> cannot be opened.
>
> example:
>
> <datamodel xmlns="www.knownData.de">
> <data>
> <test xmlns=""/>
> </data>
> <datamodel>
>
>
> <datamodel> and <data> are defined in the model but <test> is not.
> If I define any other namespace, like xmlns="blablub", the Element
> will be loaded as "Any Type" and this is ok.
> But without any String("") I get an "FeatureNotFoundException".
So I should guess what the schema looks like?
>
> I hope my explanation isn't totally confusing and somebody can help me
> :-)
Perhaps the wildcard is using namespace="##other"?
>
> greetings
> Sui


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: (no subject) [message #718965 is a reply to message #718909] Thu, 25 August 2011 16:45 Go to previous message
Dennis sui is currently offline Dennis suiFriend
Messages: 35
Registered: February 2010
Member
Sorry, but I am not allowed to show the xsd file, not my decision :-/

But, you already gave me a good hint!
I changed the value from ##other to ##any.
This seems to work properly.

Anyway, thanks a lot!


Previous Topic:[Teneo] Is it ready for GWT?
Next Topic:Building a model programmatically (handle null/empty node)
Goto Forum:
  


Current Time: Sat Apr 27 03:32:27 GMT 2024

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

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

Back to the top