Scala - Completely remove namespace from xml

.mtf

New Member
I have some xml: \[code\]<item name="ed" test="true" xmlns="http://www.somenamespace.com" xmlns:xsi="http://www.somenamespace.com/XMLSchema-instance"> <blah> <node>value</node> </blah></item>\[/code\]I want to go through this xml and remove all namespaces completely, no matter where they are. How would I do this with Scala?\[code\] <item name="ed" test="true"> <blah> <node>value</node> </blah></item>\[/code\]I've been looking at RuleTransform and copying over attributes etc, but I can either remove the namespaces or remove the attributes but not both.
 
Back
Top