小编Non*_*one的帖子

使用XmlWriter编写格式化的XML

我正在尝试将XML文件写入隔离存储,但我想将其格式化为: -

<SampleData>
  <Item Property1="AliquaXX" />
  <Item Property1="Integer" />
  <Item Property1="Quisque" />
  <Item Property1="Aenean" />
  <Item Property1="Mauris" />
  <Item Property1="Vivamus" />
  <Item Property1="Nullam" />
  <Item Property1="Nam" />
  <Item Property1="Sed" />
  <Item Property1="Class" />
</SampleData>
Run Code Online (Sandbox Code Playgroud)

但如果我能解决这个问题,我会感到烦恼,任何人都可以帮忙吗?

谢谢,挣扎的新手.

c# xml xmlwriter xml-formatting windows-phone-7

16
推荐指数
2
解决办法
1万
查看次数

标签 统计

c# ×1

windows-phone-7 ×1

xml ×1

xml-formatting ×1

xmlwriter ×1