Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » deleting the namespace
deleting the namespace [message #1005858] Tue, 29 January 2013 06:05 Go to next message
Jae Lee is currently offline Jae LeeFriend
Messages: 4
Registered: January 2013
Junior Member
First, thank you to Ed Merks who solved my problem last time.

So, with the model file you can generated an xml file and by somehow, the generated xml file has the namespace in front of every element. For example:

<caparch:archTypes> while I want to have <archTypes>.

how should I disallow the editor to attach caparch: in front of every element? Thank you.
Re: deleting the namespace [message #1005861 is a reply to message #1005858] Tue, 29 January 2013 06:10 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33133
Registered: July 2009
Senior Member
Jae,

Some form of namespace is generally needed to locate the model, i.e.,
the EPackage. Is your model XML Schema based? We do support schemas
with no target namespace, but it's more complex to handle that and to
set it up properly. You could look at what's generated for an XML
schema that doesn't have a target namespace. In particular there's an
extended meta data annotation on the EPackage and the generated resource
factory's createResource method sets options to ensure that this
annotation is respected and to ensure that the EPackage can still be
located.

On 29/01/2013 7:05 AM, Jae Lee wrote:
> First, thank you to Ed Merks who solved my problem last time.
>
> So, with the model file you can generated an xml file and by somehow,
> the generated xml file has the namespace in front of every element.
> For example:
>
> <caparch:archTypes> while I want to have <archTypes>.
>
> how should I disallow the editor to attach caparch: in front of every
> element? Thank you.


Ed Merks
Professional Support: https://www.macromodeling.com/
Previous Topic:[CDO] Help to debug server-side commit operation
Next Topic:Forward (redo) change description without using applyAndReverse
Goto Forum:
  


Current Time: Thu Apr 18 08:59:48 GMT 2024

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

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

Back to the top