How can I build XML in C#?

前端 未结 9 1677

How can I generate valid XML in C#?

9条回答
  •  逝去的感伤
    2020-11-22 07:02

    For simple things, I just use the XmlDocument/XmlNode/XmlAttribute classes and XmlDocument DOM found in System.XML.

    It generates the XML for me, I just need to link a few items together.

    However, on larger things, I use XML serialization.

提交回复
热议问题