definitions and testes to Libxmljs #257