4

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, "") ?

braX
  • 11,506
  • 5
  • 20
  • 33

1 Answers1

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