本文介绍了我正在使用xmldocument写出一个xml字符串,当元素为空时,它被写为&lt; Element /&gt;。我希望它写&lt; Element&gt;&lt; / Element&gt;相反,我怎样才能做到这一点?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述 29岁程序员,3月因学历无情被辞! 我正在使用xmldocument写出一个xml字符串,当元素为空时,它被写为< Element />。我希望它写< Element>< / Element>相反,我怎样才能做到这一点?解决方案 I am writing out an xml string using xmldocument and at the moment when an element is empty it is written out as <Element />. I would like it to write <Element></Element> instead, how can I achieve this? 解决方案 这篇关于我正在使用xmldocument写出一个xml字符串,当元素为空时,它被写为&lt; Element /&gt;。我希望它写&lt; Element&gt;&lt; / Element&gt;相反,我怎样才能做到这一点?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 上岸,阿里云!
07-27 21:12