diff options
Diffstat (limited to 'examples/error.cpp')
-rw-r--r-- | examples/error.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
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; |