How to retrieve namespaces in XML files using Xpath

后端 未结 3 1307
天命终不由人
天命终不由人 2020-11-28 04:04

I have an XML file that starts like this:


I\'ll have to open a lot o

3条回答
  •  暖寄归人
    2020-11-28 04:42

    This 40-line xslt transformation provides all the useful information about the namespaces in a given XML document:

    
    
    
    
    
    
    
    
    
    
    
      
        
          
        
      
    
      
    
      
              
                
                  
                    
                  
                
              
      
    
    

    When applied on the following XML document:

    
      
        
      
      
        
          
        
      
      
    
    

    the wanted result is produced:

    
       
          
          
          
       
       
          
          
       
       
          
          
       
    
    

提交回复
热议问题