xmlDOMApply function

Apply function to nodes in an XML tree/DOM.