c# read XML file not correctly formatted

后端 未结 3 1793
情话喂你
情话喂你 2021-01-22 07:58

I have to read an XML file, that has no root element, to extract contained data. The XML has many elements like these:


  

        
3条回答
  •  臣服心动
    2021-01-22 08:25

    You can try to use XmlParser:

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

    It pars any bad formed xml.

提交回复
热议问题