Added support to throw LibXmlException with xmlGetLastError info