在从excel 2010导出文件之前添加一个属性到xml标签以与螳螂一起使用

我使用螳螂,我需要导入我写在excel电子表格中的bug到螳螂,所以我创build了一个模式(file.xsd),并将我的数据映射到该模式,最后我将我的错误导出到与螳螂兼容的xml文件。问题是我需要添加一个属性(ID)的特定标签在生成的XML文件,有没有办法做到这一步(例如在Excel中添加一个例如)在文件准备,我的意思是在出口文件? 这里是一个导出的数据和我想要的数据的例子:

导出的数据:

<?xml version="1.0" encoding="UTF-8"?> <mantis version="1.2.12" urlbase="http:xxx/mantis/" issuelink="#" notelink="~" format="1"> <issue> <id>29</id> <project>Project 1</project> <reporter>Engy</reporter> <priority>urgent</priority> <severity>block</severity> <reproducibility>always</reproducibility> <status>new</status> <resolution>open</resolution> <projectio>none</projection> </issue> </mantis> 

我需要将id属性添加到<project><priority><severity>

  <project id="1">project 1</project> . . 

Interesting Posts