-3
<sys:String x:Key="INVESTIGATE_FURTHER">weight<123</sys:String>

like that, it prints 'XML is not valid'.

EDOaide
  • 3
  • 1
  • I think that the problem comes from the `weight<123` sequence. Perhaps you should instead replace the ` – nilleb May 09 '20 at 06:52
  • This looks like a duplicate of https://stackoverflow.com/a/5709245/1328968 – nilleb May 09 '20 at 06:52
  • Welcome to Stack Overflow. Please take the [tour] to learn how Stack Overflow works and read [ask] on how to improve the quality of your question. Then [edit] your question to include the source code you have as a [mcve], which can be compiled and tested by others. It should show how you generate/save the ResourceDictionary. – Progman May 09 '20 at 08:38

1 Answers1

2

The part:

weight<123 contains a character < with special meaning in XML

You can escape it as:

weight&lt;123

&gt; means '>'

EDOaide
  • 3
  • 1
Eric J.
  • 143,945
  • 62
  • 324
  • 540