Finish adapting to new libxml-tree API