From eac37c6a45837f7ea717c9fed8cb21e2d5665618 Mon Sep 17 00:00:00 2001 From: Aleksey Veresov Date: Fri, 31 Jan 2020 17:36:15 +0300 Subject: [xift] Working. --- examples/error.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'examples/error.cpp') diff --git a/examples/error.cpp b/examples/error.cpp index 54bb17d..72c5bfe 100644 --- a/examples/error.cpp +++ b/examples/error.cpp @@ -7,13 +7,14 @@ int main() XiftFile exporter(stdout); Xift xift(exporter); - xift.permitted.Tag("p").Attribute("class"); + xift.Tag("p").Attribute("class"); xift.PutFile("error.html"); if (!xift.End()) { printf("Error on %d line, %d column:\n%s", - xift.ErrorLine(), xift.ErrorColumn(), xift.Error()); + xift.ErrorLine(), xift.ErrorColumn(), + xift_error_message(xift.GetError())); } return 0; -- cgit v1.2.3