Combining multiple xml documents into one large one with a batch file

后端 未结 6 551
夕颜
夕颜 2020-12-18 09:55

I have a directory of 86 xml files with the same columns and formatting that I need to combine into one large xml file. I am very inexperienced with batch files, and my firs

6条回答
  •  春和景丽
    2020-12-18 10:39

    When used with ANT, the task would be enough:

    <root>
    
    
    </root>
    
    
    
      
    
      
        
      
    
            
     
    

    This code produces a common XML element and collects in it the contents of any .xml files it finds according to the file set. See:

    • http://ant.apache.org/manual-1.9.x/index.html
    • http://ant.apache.org/manual-1.9.x/index.html * http://ant.apache.org/manual-1.9.x/Types/fileset.html

提交回复
热议问题