Imported Upstream version 2.91.2
[platform/upstream/libxml++.git] / libxml++ / parsers / saxparser.h
index 83ce3a9..cba267b 100644 (file)
@@ -25,6 +25,11 @@ namespace xmlpp {
 /** SAX XML parser.
  * Derive your own class and override the on_*() methods.
  * SAX = Simple API for XML
+ *
+ * In a system that does not support std::exception_ptr: If an overridden on_*()
+ * method throws an exception which is not derived from xmlpp::exception,
+ * that exception is replaced by a xmlpp::exception before it is propagated
+ * out of the parse method, such as parse_file().
  */
 class SaxParser : public Parser
 {
@@ -194,7 +199,7 @@ protected:
    * Unlike the DomParser, the SaxParser will also tell you about entity references for the 5 predefined entities.
    *
    * @param name The entity reference name.
-   * @returns The resolved xmlEntity for the entity reference, or <tt>0</tt> if not found.
+   * @returns The resolved xmlEntity for the entity reference, or <tt>nullptr</tt> if not found.
    *          You must include libxml/parser.h in order to use this C struct.
    * This instance will not be freed by the caller.
    */