XML:deleteAttribute(path,name)

Delete an attribute from an element. If no path is given, the attribute will be deleted from the current element node. If a path is given, the attribute will be deleted from the node identified by the path. Returns false if the path is supplied and the path does not identify an element in the document, otherwise returns true even if the element does not have an attribute with the given name.

Example

doc:deleteAttribute('date')
doc:deleteAttribute('/options/database', 'name')