deleting the namespace [message #1005858] |
Tue, 29 January 2013 01:05  |
Eclipse User |
|
|
|
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 01:10  |
Eclipse User |
|
|
|
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.
|
|
|
Powered by
FUDForum. Page generated in 0.03238 seconds