This is the 2.0.0-beta, lots and lots and lots of changes
Have a look at http://xmlsoft.org/upgrade.html
Daniel
diff --git a/testSAX.c b/testSAX.c
index fd65092..d7b0f12 100644
--- a/testSAX.c
+++ b/testSAX.c
@@ -73,6 +73,7 @@
NULL, /* xmlParserError */
NULL, /* xmlParserError */
NULL, /* getParameterEntity */
+ NULL, /* cdataBlock; */
};
xmlSAXHandlerPtr emptySAXHandler = &emptySAXHandlerStruct;
@@ -455,6 +456,21 @@
}
/**
+ * cdataBlockDebug:
+ * @ctx: the user data (XML parser context)
+ * @value: The pcdata content
+ * @len: the block length
+ *
+ * called when a pcdata block has been parsed
+ */
+void
+cdataBlockDebug(void *ctx, const xmlChar *value, int len)
+{
+ fprintf(stderr, "SAX.pcdata(%.20s, %d)\n",
+ (char *) value, len);
+}
+
+/**
* commentDebug:
* @ctxt: An XML parser context
* @value: the comment content
@@ -553,6 +569,7 @@
errorDebug,
fatalErrorDebug,
getParameterEntityDebug,
+ cdataBlockDebug
};
xmlSAXHandlerPtr debugSAXHandler = &debugSAXHandlerStruct;