Reading XML with unclosed tags in C#

前端 未结 3 731
我寻月下人不归
我寻月下人不归 2021-01-13 23:48

I have a program which runs tests and generates a grid-view with all the results in it, and also an XML log file. The program also has the functionality to load logs to repl

3条回答
  •  佛祖请我去吃肉
    2021-01-14 00:12

    As a last resort and depending on what you're doing, you could use an HTML reader like HtmlAgilityPack(Nuget page) or SGMLReader. SGMLReader will actually convert it to an XmlDocument, so that might be more what you're looking for.

    Of course, HTML isn't XML so you get what you get when using this method.

提交回复
热议问题