Appending child node into the parent node

前端 未结 1 1455
有刺的猬
有刺的猬 2021-01-24 03:24

I need to append child node into the parent node. Order_no under order_h is equal to next sibiling the order_d should merge into parent node order_h

Here is the xml

1条回答
  •  醉酒成梦
    2021-01-24 03:50

    This transformation:

    
     
     
    
     
      
       
      
     
    
     
    
     
      
       
      
     
    
    

    when applied to the provided XML document:

    
        
            
                
                    
                        
                            
                        
                        
                            
                        
                        
                            
                        
                        
                            
                        
                    
                
            
            
                
                    
                        
                            
                        
                        
                            
                        
                        
                            
                        
                        
                            
                        
                    
                
            
        
    
    

    produces the wanted, correct result:

    
       
          
             
                
                   
                      
                   
                   
                      
                   
                   
                      
                   
                   
                      
                   
                
             
             
                
                   
                      
                   
                   
                      
                   
                   
                      
                   
                   
                      
                   
                
             
          
       
    
    

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