50 #include <libxml/globals.h>
51 #include <libxml/xmlerror.h>
52 #include <libxml/parser.h>
56 extern "C" void xml_error (
void *,
const char*, ...);
68 if ( --ms_counter == 0 )
75 remove_whitespace(
false);
76 substitute_entities(
true);
77 load_external_subsets(
true);
81 xmlSetGenericErrorFunc(0, xml_error);
94 if ( do_cleanup_at_exit )
99 xmlIndentTreeOutput = flag ? 1 : 0;
103 xmlKeepBlanksDefaultValue = flag ? 0 : 1;
107 return xmlKeepBlanksDefaultValue == 0;
111 xmlSubstituteEntitiesDefaultValue = flag ? 1 : 0;
115 xmlLoadExtDtdDefaultValue = flag ? 1 : 0;
119 xmlDoValidityCheckingDefaultValue = flag ? 1 : 0;
123 do_cleanup_at_exit = flag;
127 extern "C" void xml_error (
void*,
const char*, ...)
static void validate_xml(bool flag)
This member function controls whether or not the XML parser should validate every XML document that i...
static void substitute_entities(bool flag)
This member function controls whether or not the XML parser should substitute entities while parsing.
static void library_cleanup_on_exit(bool flag)
This member function controls whether or not the libxml2 library data will be cleaned up at exit.
static bool get_remove_whitespace(void)
This member function provides the current setting of the XML parser which tells whether it should rem...
static void remove_whitespace(bool flag)
This member function controls whether or not the XML parser should remove ignorable whitespace around...
static bool do_cleanup_at_exit
static void load_external_subsets(bool flag)
This member function controls whether or not the XML parser should load external (DTD) subsets while ...
static void indent_output(bool flag)
This member function controls whether or not the XML parser should add text nodes for indenting when ...
This file contains declarations required for iterators dereferencing support.
void cleanup_node(xmlNodePtr xmlnode)
void register_https_input(void)
This file contains the definition of the xml::init class.