Trouble with XML Deserialization into XSD generated classes

后端 未结 4 1707
无人共我
无人共我 2021-01-02 02:11

I have a rather detailed xml file. Below is the top level nodes (I have included the ellipse as the lower level nodes are all well formed and properly filled with data):

4条回答
  •  囚心锁ツ
    2021-01-02 02:50

    Another issue that can cause this problem is that the xml file contents between the tags (meaning the content) is still encoded when it shouldn't be. For example, the
    tags in my content were still
    instead of <br />. The xsd generator turned these into elements in the schema then mislabeled them as unbounded since there was more than one found. Unencoding them fixed the problem and generated the classes correctly.

提交回复
热议问题