Rank: Newbie
Joined: 11/21/2016 Posts: 2
|
I have created files in the past where I have added comments within XML tags, using a different editor, e.g.:
Code:<tag>Value<!--Comment--></tag>
However, when loaded into XMLSpy (I'm using Enterprise Edition 2015, SP1) and saved, these commented lines are all changed to:
Code:<tag>Value<!--Comment--> </tag>
Having this line break after the comment closes breaks the file. Am I using comments incorrectly, or is this changeable behaviour?
Many thanks for any help
|
Rank: Advanced Member
Joined: 12/13/2005 Posts: 2,856 Location: Mauritius
|
This format change happens if you switch to the Grid View, which then writes XML text back when you switch again to the Text View.
If you stay within Text View no such reformatting will happen
|