|
Re: Lost xml comments save editor [message #425816 is a reply to message #425812] |
Tue, 09 December 2008 10:59 |
Ed Merks Messages: 33142 Registered: July 2009 |
Senior Member |
|
|
David,
EMF will preserve comments only if they occur for complex types with
mixed content. Generally, if comments are imported, they should be part
of the model, rather than floating around in the white space...
David CHAUTARD wrote:
> Hello,
> I have a problem when I save my editor after a modification done with
> IHM. I loose the comments which were previously in the file. When I
> execute my doSave() method, I get my resources to save it, but I don't
> get the comments.
> How can I get them, have we an option to do this?
>
> Thx for your help,
> David
>
Ed Merks
Professional Support: https://www.macromodeling.com/
|
|
|
|
Re: Lost xml comments save editor [message #425854 is a reply to message #425823] |
Wed, 10 December 2008 09:19 |
Ed Merks Messages: 33142 Registered: July 2009 |
Senior Member |
|
|
David,
Nevertheless, we only maintain comments for complex types with mixed
content. In all other cases we treat it as whitespace and ignore it.
David CHAUTARD wrote:
> Ed,
> If I understand what you say, I have to add the comment like an
> attibute in my complex type.
> But my problem is that users comment some part of xml to realise a
> test, and they modify some attributes with the IHM. And when he save,
> it remove the commented part.
> David.
>
Ed Merks
Professional Support: https://www.macromodeling.com/
|
|
|
Powered by
FUDForum. Page generated in 0.03221 seconds