Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 371068

Summary: Improve handling of comments for XML/model root elements
Product: [Automotive] Sphinx Reporter: Christian K. <christian.k.2510>
Component: CoreAssignee: Christian K. <christian.k.2510>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: stephaneberle9
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard:

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