Comment Editor Insert Picture saves OK but then reports "Badly formed XML comment"
Problem reported by Danny McNaught - August 16 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.

4 Replies

Reply to Thread
0
"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
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
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
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!

Reply to Thread