How can we convert XML file to CSV?

后端 未结 6 487
星月不相逢
星月不相逢 2021-01-29 09:05

I am having an XML file



    
        
        

        
6条回答
  •  滥情空心
    2021-01-29 09:57

    In XSLT 1.0:

    
    
      
    
      
          
      
    
      
          
        
            
        
      
    
      
        
        
            
        
      
    
    
    

    If your COL* values can contain commas, you could wrap the values in double quotes:

      
        
        
    

    If they can contain commas and double quotes, things could get a bit more complex due to the required escaping. You know your data, you'll be able to decide how to best format the output. Using a different separator (e.g. TAB or a pipe symbol) is also an option.

提交回复
热议问题