Error in loading xml file in XmlDocument

前端 未结 3 1846
感情败类
感情败类 2021-01-21 19:22

Hi I have below xml file that I am trying to load in xml document using below code -

XmlDocument Doc = new XmlDocument();
Doc.LoadXml(@\"C:\\MappingFiles\\Input         


        
3条回答
  •  终归单人心
    2021-01-21 20:12

    Use XMLDocument.Load(). This accepts an xml file

    whereas XMLDocument.LoadXml() accepts an xml string.

提交回复
热议问题