From XmlDocument To XmlReader .Net

后端 未结 2 575
时光取名叫无心
时光取名叫无心 2021-02-07 03:47

After an advice from a user that answered to my question I\'m tring to convert my XmlDocument code to XmlReader code but I\'m having some troubles.

This is XML (generate

2条回答
  •  不思量自难忘°
    2021-02-07 04:20

    You can use

    XmlReader xmlReader = new XmlNodeReader(xmlDoc);
    

    See: http://blog.jongallant.com/2007/01/convert-xmldocument-to-xmlreader.html

提交回复
热议问题