From 63f624a7086933a1095bffe2425e8255d76325d3 Mon Sep 17 00:00:00 2001
From: "Fred L. Drake, Jr." XML_ExternalEntityRefHandler
, if they
apply to the parser created by XML_ExternalEntityParserCreate
.
+enum XML_Status { + XML_STATUS_ERROR = 0, + XML_STATUS_OK = 1 +}; +
s
is a buffer
containing part (or perhaps all) of the document. The number of bytes of s
@@ -662,20 +668,21 @@ memory that s
points at, then a memory fault is likely. The
isFinal
parameter informs the parser that this is the last
piece of the document. Frequently, the last piece is empty (i.e.
len
is zero.)
-If a parse error occurred, it returns 0. Otherwise it returns a non-zero
-value.
+If a parse error occurred, it returns XML_STATUS_ERROR
.
+Otherwise it returns XML_STATUS_OK
value.
XML_GetBuffer
-function, the application can avoid double copying of the input.
+This is just like XML_Parse
, except in this case expat
+provides the buffer. By obtaining the buffer from expat with the
+XML_GetBuffer
function, the application can avoid double
+copying of the input.