Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Modeling (top-level project) » DocumentRoot tag !
DocumentRoot tag ! [message #383196] Fri, 05 September 2008 14:47 Go to next message
Andre Ribeiro is currently offline Andre RibeiroFriend
Messages: 58
Registered: July 2009
Member
Hello,

I am trying to edit an XML file directly from automatically generated
ECore in my RCP application.
However for every Ecore automatically generated from an XSD, EMF puts a
tag DocumentRoot.

I read this http://markmail.org/message/jk6m6rsz6shsomku from Ed, but i
cannot find any example of an XSD for which EMF doesn't put this
DocumentRoot tag.
Is there such an example?

To edit my XML files I am using OpenArchitectureWare's Generic Editor
with the *.ecore file in the schema location.

Thanks a lot,
André
Re: DocumentRoot tag ! [message #383199 is a reply to message #383196] Fri, 05 September 2008 15:32 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33139
Registered: July 2009
Senior Member
André,

Please use the EMF newsgroups for EMF questions. I've added it to the
"to" list of the reply.

The model itself will always have a DocumentRoot at the top, but if
you're using the right (the generated one) registered resource factory
the serialization itself won't have such an object...


André Ribeiro wrote:
> Hello,
>
> I am trying to edit an XML file directly from automatically generated
> ECore in my RCP application.
> However for every Ecore automatically generated from an XSD, EMF puts
> a tag DocumentRoot.
>
> I read this http://markmail.org/message/jk6m6rsz6shsomku from Ed, but
> i cannot find any example of an XSD for which EMF doesn't put this
> DocumentRoot tag.
> Is there such an example?
>
> To edit my XML files I am using OpenArchitectureWare's Generic Editor
> with the *.ecore file in the schema location.
>
> Thanks a lot,
> André


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: DocumentRoot tag ! [message #610546 is a reply to message #383196] Fri, 05 September 2008 15:32 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33139
Registered: July 2009
Senior Member
André,

Please use the EMF newsgroups for EMF questions. I've added it to the
"to" list of the reply.

The model itself will always have a DocumentRoot at the top, but if
you're using the right (the generated one) registered resource factory
the serialization itself won't have such an object...


André Ribeiro wrote:
> Hello,
>
> I am trying to edit an XML file directly from automatically generated
> ECore in my RCP application.
> However for every Ecore automatically generated from an XSD, EMF puts
> a tag DocumentRoot.
>
> I read this http://markmail.org/message/jk6m6rsz6shsomku from Ed, but
> i cannot find any example of an XSD for which EMF doesn't put this
> DocumentRoot tag.
> Is there such an example?
>
> To edit my XML files I am using OpenArchitectureWare's Generic Editor
> with the *.ecore file in the schema location.
>
> Thanks a lot,
> André


Ed Merks
Professional Support: https://www.macromodeling.com/
Previous Topic:DocumentRoot tag !
Next Topic:aggregation relation & containmentfeature
Goto Forum:
  


Current Time: Tue Apr 23 07:31:05 GMT 2024

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

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

Back to the top