How can I build XML in C#?

前端 未结 9 1666

How can I generate valid XML in C#?

9条回答
  •  旧巷少年郎
    2020-11-22 06:50

    As above.

    I use stringbuilder.append().

    Very straightforward, and you can then do xmldocument.load(strinbuilder object as parameter).

    You will probably find yourself using string.concat within the append parameter, but this is a very straightforward approach.

提交回复
热议问题