.NET : How to validate XML file with DTD without DOCTYPE declaration

后端 未结 3 857
無奈伤痛
無奈伤痛 2021-01-12 02:12

I have an XML file with no DOCTYPE declaration that I would like to validate with an external DTD upon reading.

Dim x_set As Xml.XmlReaderSettings = New Xml.         


        
3条回答
  •  盖世英雄少女心
    2021-01-12 02:45

    Could you create an Xml.XmlDocument with the DTD you want, then append the XML file data to the in-memory Xml.XmlDocument, then validate that?

提交回复
热议问题