how to Merge two xml files with XSLT

前端 未结 1 1558
囚心锁ツ
囚心锁ツ 2020-12-01 11:37

I have two xml files which need to be merged into one by using XSLT.

First XML is (the original one):


   
    

        
1条回答
  •  感动是毒
    2020-12-01 12:07

    Pretty much the same answer as I provided to your last question, modified to match your new XML format:

    
      
      
      
    
      
    
      
        
          
        
      
    
      
        
          
          
        
      
    
    

    When run on the first sample XML, with the second one saved as "updates.xml", this produces:

    
      
        f
        l
      
      2011-01-02 
      
        1
        aaa
        XXX
      
      
        2
        newName
        newContent
      
      
        3
        ccc
        ZZZ
      
    
    

    0 讨论(0)
提交回复
热议问题