Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 371068 - Improve handling of comments for XML/model root elements
Summary: Improve handling of comments for XML/model root elements
Status: CLOSED FIXED
Alias: None
Product: Sphinx
Classification: Automotive
Component: Core (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Christian K. CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-02-09 07:55 EST by Christian K. CLA
Modified: 2021-07-14 02:16 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Christian K. CLA 2012-02-09 07:55:12 EST
Currently a mechanism is implemented in Sphinx which makes sure that comments which occur in an XML file before the start tag of the root element do not get lost and that these comments will appear in the mixed feature of the root model element.

During a load/save cycle this will change the layout of the XML file since the all comments from before the root element will move into the root element when the model is serialized. Such comments will appear before any other elements of the root.

The mechanism shall be improved so that it supports correct placement of comments, text, CDATA and processing instructions which appear before the root element.
Comment 1 Christian K. CLA 2012-02-23 03:22:31 EST
New mechanism for handling of comments, text, CDATA and processing instructions (XML content) before the root element has been implemented. If the root element contains a special feature "mixedOuterContent" the XML content will be stored in this feature and it will later be written out during saving.
Comment 2 Balazs Grill CLA 2021-07-14 02:16:53 EDT
Mass-closing Resolved tickets