Design Strongly typed object from XML

前端 未结 5 1586
Happy的楠姐
Happy的楠姐 2020-12-18 04:56

I have a couple of XML files that I need to work with, and I\'ve always used the XElement objects and pulled the data via the attribute name or the XElement\'s value.

<
5条回答
  •  醉话见心
    2020-12-18 05:45

    If you have a schema for the XML you can generate classes using tools such as xsd.exe (windows SDK), svcutil.exe (WCF) or (my personal preference) an open source alternative (Xsd2Code).

提交回复
热议问题