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, "") ?
Clearing attributes in Tritium
285 views Asked by Sophia Kostadinova Taskova At
1
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, "") ?
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/@*")