How can I build XML in C#?

前端 未结 9 1915

How can I generate valid XML in C#?

9条回答
  •  离开以前
    2020-11-22 07:13

    XmlWriter is the fastest way to write good XML. XDocument, XMLDocument and some others works good aswell, but are not optimized for writing XML. If you want to write the XML as fast as possible, you should definitely use XmlWriter.

提交回复
热议问题