Read xml file/string in a generic way without knowing the structure

前端 未结 5 1858
终归单人心
终归单人心 2021-01-07 09:00

I want to read a XML hierarchy into a tree of in-memory objects. The XML tree could have n-levels of children. I do not know the exact number. My in-memory objects have a ch

5条回答
  •  栀梦
    栀梦 (楼主)
    2021-01-07 09:39

    Take a look at XmlTextReader and at the package System.Xml. This articles will help you too:

    • http://www.codeproject.com/KB/cpp/XMLReadWrite.aspx
    • http://www.noboxsolutions.com/xmltextreader_constructor.aspx

提交回复
热议问题