1
Comment Editor Insert Picture saves OK but then reports "Badly formed XML comment"
Problem reported by Danny McNaught - 8/16/2017 at 10:45 AM
Being Fixed
Comment Editor Insert Picture saves OK but then reports "Badly formed XML comment"  in both Comment Preview and Comment Editor.

9 Replies

Reply to Thread
0
Danny McNaught Replied
I manually removed the image reference and the error goes away.
0
Danny McNaught Replied
"Badly formed XML Comment" result after image inserted.
 
        /// <summary><para>Initializes a new instance of the MainWindow Class</para><para><img width="2046" height="2045" style="width: 316px; height: 322px;" src="..\userimages\Danny.jpg"></para></summary>
        /// <remarks>
        /// <para><b>History:</b></para><div class="tableSection"><table width="100%" frame="lhs" cellSpacing="2" cellPadding="5"><tbody><tr><th>Developer\Date\Time</th><th>Developer Company</th><th>Developer Phone</th><th>Developer Email</th><th>Developer On</th><th>Description</th></tr><tr><td>
        ///   Developer: Danny C. McNaught
        ///   <para>Date: Wednesday, August 16, 2017</para><para>Time: 1:41 PM</para></td><td>United States Postal Service</td><td>(919) 424-9259</td><td><a href="mailto:danny.mcnaught@dxc.com">mailto:danny.mcnaught@dxc.com</a><para><a href="mailto:danny.c.mcnaught@usps.gov">mailto:danny.c.mcnaught@usps.gov</a></para><para><a href="mailto:sfcsarge@outlook.com">mailto:sfcsarge@outlook.com</a></para></td><td>SURFACEPRO3VM</td><td>Created XML Comment</td></tr></tbody></table></div>
        /// </remarks>
 
0
Danny McNaught Replied
After manually removing image back to normal no error.
 
        /// <summary><para>Initializes a new instance of the MainWindow Class</para></summary>
        /// <remarks>
        /// <para><b>History:</b></para><div class="tableSection"><table width="100%" frame="lhs" cellSpacing="2" cellPadding="5"><tbody><tr><th>Developer\Date\Time</th><th>Developer Company</th><th>Developer Phone</th><th>Developer Email</th><th>Developer On</th><th>Description</th></tr><tr><td>
        ///   Developer: Danny C. McNaught
        ///   <para>Date: Wednesday, August 16, 2017</para><para>Time: 1:41 PM</para></td><td>United States Postal Service</td><td>(919) 424-9259</td><td><a href="mailto:danny.mcnaught@dxc.com">mailto:danny.mcnaught@dxc.com</a><para><a href="mailto:danny.c.mcnaught@usps.gov">mailto:danny.c.mcnaught@usps.gov</a></para><para><a href="mailto:sfcsarge@outlook.com">mailto:sfcsarge@outlook.com</a></para></td><td>SURFACEPRO3VM</td><td>Created XML Comment</td></tr></tbody></table></div>
        /// </remarks>
 
0
Danny McNaught Replied
Comment Editor Source View before save:
 
<summary><para>Initializes a new instance of the MainWindow Class</para><para><img width="2047" height="2047" style="width: 300px; height: 298px;" src="..\userimages\Danny.jpg"></para></summary>
<remarks>
  <para><b>History:</b></para><div class="tableSection"><table width="100%" frame="lhs" cellSpacing="2" cellPadding="5"><tbody><tr><th>Developer\Date\Time</th><th>Developer Company</th><th>Developer Phone</th><th>Developer Email</th><th>Developer On</th><th>Description</th></tr><tr><td>
  Developer: Danny C. McNaught
  <para>Date: Wednesday, August 16, 2017</para><para>Time: 1:41 PM</para></td><td>United States Postal Service</td><td>(919) 424-9259</td><td><a href="mailto:danny.mcnaught@dxc.com">mailto:danny.mcnaught@dxc.com</a><para><a href="mailto:danny.c.mcnaught@usps.gov">mailto:danny.c.mcnaught@usps.gov</a></para><para><a href="mailto:sfcsarge@outlook.com">mailto:sfcsarge@outlook.com</a></para></td><td>SURFACEPRO3VM</td><td>Created XML Comment</td></tr></tbody></table></div>
</remarks>
 
Comment Editor Source View after save:
 
<summary><font color="red">Badly formed XML comment.</font></summary>
0
Danny McNaught Replied
removed:
<para><img width="2047" height="2047" style="width: 300px; height: 298px;" src="..\userimages\Danny.jpg"></para>

From comment and all OK now just will not work with image.
0
Danny McNaught Replied
Note: Visual Studio Enterprise 15.3 released on the 14th is what I am running under.
0
Serge B. Replied
Employee Post
Danny,
 
The Visual Editor inserts the following for the image - <img src="..\userimages\<file name>" /> 
 
At this point, it does not add width/height or any other attributes.
 
It appears you have manually edited the <img /> in the XML Comment text and accidentally removed the "/" before the closing angle bracket.
 
Would that be the case?
 
Thanks!
Serge Baranovsky
SubMain Software
(800) 936-2134
0
Danny McNaught Replied
Serge, I edited/resized the image while it was in Comment Editor by moving the corner handles of the image. Then I click save. So the removal has to happen on your end.
0
Serge B. Replied
Employee Post
Yes, this helps to reproduce the issue. We are fixing it. Thanks!
Serge Baranovsky
SubMain Software
(800) 936-2134

Reply to Thread