Walking an XML tree in C#

后端 未结 4 954
挽巷
挽巷 2021-02-19 22:35

I\'m new to .net and c#, so I want to make sure i\'m using the right tool for the job.

The XML i\'m receiving is a description of a directory tree on another machine, so

4条回答
  •  囚心锁ツ
    2021-02-19 23:25

    Load your XML into an XMLDocument. You can then walk the XMLDocuments DOM using recursion.

    You might want to also look into the factory method pattern to create your classes, would be very useful here.

提交回复
热议问题