1
WYSIWYG Generates Invalid XML
Problem reported by MD - 11/11/2019 at 10:27 AM
Resolved
Using this XML:

I hit CTRL-SHIFT-D on it, to open your amazing WYSIWYG editor. :)

Notice the "Notice"... I want to convert this to a note.

This generates the result:

		/// <summary>
		///   <para>
		/// Specifies an existing reference to use as target for deserialization of values.  Read values during
		/// deserialization will be read and assigned into the provided target instance.
		/// </para>
		///   <note type="important">Be sure to call <see cref="M:ExtendedXmlSerializer.ExtensionMethods.AllowExistingInstances(IConfigurationContainer)"> when configuring the container before using this method. </see></note>
		///   <para></para>
		/// </summary>
		/// <typeparam name="T">The instance type.</typeparam>
		/// <param name="this">The serializer</param>
		/// <param name="instance">The instance to deserialize</param>
		/// <returns>A ReferencedDeserialization&lt;T&gt; context.</returns>
		/// <seealso href="https://github.com/ExtendedXmlSerializer/ExtendedXmlSerializer/issues/230"; />
When attempting to CTRL-SHIFT-D on this generated XML, I get the following:



This might be due to being a newb with all this magic.  Please let me know if there is something obvious I am overlooking.  Thank you!

7 Replies

Reply to Thread
0
MD Replied
FWIW I have this captured in a video here:
1
Misha Zhutov Replied
Employee Post
Hello, 

Thank you for reporting that. We will take a look at that and get back to you shortly.

0
Misha Zhutov Replied
Employee Post
We found a problem. According to the <see> tag specification it cannot contain text inside it (like <see cref="AllowExistingInstances"> when configuring the container before using this method. </see>) and GhostDoc does not support it. If you delete the text and use just <see cref="AllowExistingInstances" /> it will work.
0
MD Replied
Correct, that is the problem @Misha, thank you for investigating.

However, please note that it is the GhostDoc editor that is creating the invalid XML.  Please see the video above. 

Here are the steps to reproduce:

  1. Use the XML found here (note that it is well-formed and valid).
  2. CTRL-SHIFT-D on it.
  3. Select the NOTICE text and cut.
  4. Create new Note.
  5. Paste text (removing Notice since it's in a note) -- in this case, I selected important.
  6. Click OK
  7. Click Save
At this point, you should see the invalid XML as pasted above.  This is the result of the GhostDoc WYSIWYG dialog.  At least, this is what I am experiencing on my machine.  Please let me know if there is any further information I can provide to help diagnose.
1
Misha Zhutov Replied
Employee Post
Thank you, we will fix that and get back to you shortly.
1
Misha Zhutov Replied
Employee Post Marked As Resolution
We have fixed the issue, please download and install an interim build from here
0
MD Replied
Awesome!  Thank you for being so quick with this!

Reply to Thread