Error tolerant XML reader

后端 未结 5 1359
悲&欢浪女
悲&欢浪女 2020-12-18 12:51

Does anyone have/make/sell an error tolerant XML reader for .NET?

Yeah, I know, XML isn\'t designed to have errors in it and should be rejected if it\'s not valid ..

5条回答
  •  无人及你
    2020-12-18 13:42

    yes, I know it's old question, but recently I was looking for tolerant xml parser and found the following: XmlParser.

    A Roslyn-inspired full-fidelity XML parser with no dependencies and a simple Visual Studio XML language service.

    The parser produces a full-fidelity syntax tree, meaning every character of the source text is represented in the tree. The tree covers the entire source text. The parser has no dependencies and can easily be made portable.

    You can add Nugets in your project. I tried this parser and it can read any XML files.

提交回复
热议问题