method
delete_all
delete_all( xpath )
public
Removes multiple elements. Filters for Element children, regardless of XPath matching.
xpath |
all elements matching this String path are removed. |
Returns |
an Array of Elements that have been removed |
doc = Document.new ā<a><c/><c/><c/><c/>ā deleted = doc.elements.delete_all āa/cā #-> [<c/>, <c/>, <c/>, <c/>]