What's the best way to clear all attributes of an element with Tritium? Do I have to enumerate all existing attributes with attribute(%name, "") ?
Asked
Active
Viewed 252 times
1 Answers
4
The best way is to use the remove function by itself after selecting an item.
remove("@*")
You could even select the node first
remove("//node/@*")

jefeman
- 225
- 1
- 12