Libxml upgrade

Creating a generic interface between Tritium and Gokogiri (https://moovweb.atlassian.net/browse/PFST-49)
it seemed to me that you used something like this before, specifically on line 1157 of whale/functions.go... would it be useful, helpful to write an iterator over children of a node that takes a function and performs it on each child?