Partial LibXML2 bindings for Haskell