Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Technical Support
 Illegal XML when using nested comments

You must be registered to post a reply.
Click here to register.

Screensize:
UserName:
Password:
Format: BoldItalicizeUnderlineStrikethrough Align leftCenterAlign right Insert horizontal ruleUpload and insert imageInsert hyperlinkInsert email addressInsert codeInsert quoted textInsert listInsert Emoji
   
Message:

Forum code is on.
Html is off.

 
Check to subscribe to this topic.
   

T O P I C    R E V I E W
Klaus Posted - Feb 28 2014 : 03:38:00 AM
Hi,

the key * for commenting out a selected code section also works for XML, which is great. But when there's already a comment in the selection then it is changed from "<!--" to "< ! --", which is invalid. The sequence "--" is not allowed in XML comments.

Using VAX build 2029 in VS 2010.

To reproduce, create an XML file:
<?xml version="1.0" encoding="UTF-8"?>
<root>
  <foo>
    <!-- My comment -->
  </foo>
</root>

Select the <foo> lines and comment them out:
<root>
<!-- 
  <foo>
    < ! -- My comment -- >
  </foo>
 -->
</root>

Suggestion: Instead of
< ! -- ... -- >
use this:
<!- - ... - ->
2   L A T E S T    R E P L I E S    (Newest First)
sean Posted - Apr 07 2014 : 3:33:13 PM
case=80664 is fixed in build 2031
feline Posted - Mar 03 2014 : 9:41:03 PM
I am seeing the same effect here. Thank you for the clear description and the suggestion of how to handle this:

case=80664

© 2021 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000