Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
User name:
Password:
Save Password
Forgot your password?

 All Forums
 Visual Assist
 Technical Support
 Illegal XML when using nested comments
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Klaus
New Member

3 Posts

Posted - Feb 28 2014 :  03:38:00 AM  Show Profile  Reply with Quote
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:
<!- - ... - ->

feline
Whole Tomato Software

United Kingdom
19022 Posts

Posted - Mar 03 2014 :  9:41:03 PM  Show Profile  Reply with Quote
I am seeing the same effect here. Thank you for the clear description and the suggestion of how to handle this:

case=80664

zen is the art of being at one with the two'ness
Go to Top of Page

sean
Whole Tomato Software

USA
2817 Posts

Posted - Apr 07 2014 :  3:33:13 PM  Show Profile  Reply with Quote
case=80664 is fixed in build 2031
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000