2017-10-11 98 views
0

我已经得到了很多的XML文件中有看起来像这样的元素Visual Studio解决方案:格式XML元素属性为列

<myelem id="0123" name="My Element" color="red" position="top"/> 
<myelem id="4567" name="Another Element" color="blue" position="middle"/> 
<myelem id="89AB" name="A Different Element" color="green" position="bottom"/> 

我有几万列出一个这些元素接着在XML文件中。它们由电子表格生成。由于属性值长度不同,元素难以阅读。我一直在属性之间添加空格,以制作一个易于阅读的表格形式。

<myelem id="0123" name="My Element"   color="red" position="top"/> 
<myelem id="4567" name="Another Element"  color="blue" position="middle"/> 
<myelem id="89AB" name="A Different Element" color="green" position="bottom"/> 

但我不能手工为我所有的元素做这个。 是否有一个工具(独立或扩展),增加了我需要的额外空间?

我很感激您的任何建议。这个问题正在驱动我的同事,我疯了!

回答

0

很难证明不存在,但我不知道有任何这样的工具。

我自己有一两个文件,我保持这种格式,所以我认识到这个要求。