Clearing Attributes in Tritium

What is the best way to clear all attributes of a Tritium element? Do I need to list all existing attributes with the attribute (% name, "")?

+4
source share
1 answer

The best way is to use the remove function yourself after selecting the item.

delete ("@ *")

You can even select node first

delete ("// node / @ *")

+4
source

Source: https://habr.com/ru/post/1496891/


All Articles