IMPORTANT:
this is not a Support Forum! Experienced users might answer from time to time questions posted here. If you need a professional and reliable answer, or if you want to report a bug, please contact Altova Support instead.

New Lines after Comments when using XMLSpy Options · View
AB1984
Posted: Monday, November 21, 2016 8:59:36 AM
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
vlad
Posted: Monday, November 21, 2016 10:16:54 AM
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
Users browsing this topic
guest

Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Use of the Altova User Forum(s) is governed by the Altova Terms of Use.