【发布时间】:2015-10-12 13:09:08
【问题描述】:
我想像在 notepad++ 中那样格式化一个 xml 字符串。
使用 FormatXMLData 时的问题(提供的解决方案https://stackoverflow.com/a/235901/3135176)我在命名空间前缀上遇到解析错误。
示例 xml 字符串:
<ns1:Make><ns1:CustomerID>K||15538</ns1:CustomerID></ns1:Make>
记事本++的结果:
<ns1:Make>
<ns1:CustomerID>K||15538</ns1:CustomerID>
</ns1:Make>
请指教
【问题讨论】: