#include <libgtkhtml/gtkhtml.h>

static const gchar *html = "<html>\n<body>\nfoo\n</body>\n<html>\n";

int
main(int argc, char **argv)
{
    HtmlDocument *doc;

    gtk_init(&argc, &argv);

    doc = html_document_new();
    html_document_open_stream(doc, "text/html");
    html_document_write_stream(doc, html, sizeof(html));
    html_document_close_stream(doc);
    g_object_unref(doc);

    return 0;
}
