How do I add a namespace prefix to each node using TXMLDocument

前端 未结 5 1092
轻奢々
轻奢々 2021-01-20 13:39

I used the XML Binding Wizard to create a descendant of TXMLDocument. The files generated by this class would declare the namespace in the root node and create just plain, u

5条回答
  •  小鲜肉
    小鲜肉 (楼主)
    2021-01-20 14:25

    add namespace + prefix to XML using XSL

    The accepted answer shows how XSL can be used to add namespace prefixes.

    Quote:


    Use:

    
     
    
     
      
       
      
     
    
     
      
        
        
      
     
    
    

    When this transformation is applied on the provided XML document, the wanted, correct result is produced:

    
       
          12345
          john
          
              .....
             
          
       
    
    

提交回复
热议问题