Use XSL to copy XML and omit the values of elements/attributes

anaescehoni

New Member
Ok. Is it easy to copy an XML file using XSLT and create an exact copy but without any values. Basically I just want the layout.ie\[code\]<rootnode lang="EN"> <child1>Hello</child1> <child2> <child2_1>hello</child2_1> </child2></rootnode>\[/code\]and output\[code\]<rootnode lang=""> <child1></child1> <child2> <child2_1></child2_1> </child2></rootnode>\[/code\]
 
Back
Top