Matching the new XML API

This commit is contained in:
Pierre Pronchery 2010-08-25 19:18:11 +00:00
parent 3b29dd7337
commit 1636611012

View File

@ -413,8 +413,8 @@ static ssize_t _document_load_write(Conn * conn, char const * buf, size_t size,
if(size == 0)
{
if((xml = xml_new_string(ghtml->buffer, ghtml->buffer_cnt))
== NULL)
if((xml = xml_new_string(NULL, ghtml->buffer,
ghtml->buffer_cnt)) == NULL)
return 0;
if((doc = xml_get_document(xml)) != NULL)
_document_load_write_node(ghtml, doc->root);