Commits

Anonymous committed a71858a

expand_entites must be set by default (was in previous XML::LibXML versions)

Comments (0)

Files changed (3)

   XML_PARSE_OLDSAX	  => 1048576,  # parse using SAX2 interface from before 2.7.0
 };
 
-use constant XML_LIBXML_PARSE_DEFAULTS => ( XML_PARSE_NODICT | XML_PARSE_HUGE | XML_PARSE_DTDLOAD );
+use constant XML_LIBXML_PARSE_DEFAULTS => ( XML_PARSE_NODICT | XML_PARSE_HUGE | XML_PARSE_DTDLOAD | XML_PARSE_NOENT );
 
 # this hash is made global so that applications can add names for new
 # libxml2 parser flags as temporary workaround
             recover = LibXML_get_recover(real_obj);
 
             ctxt->_private = (void*)self;
-            xs_warn( "context initialized \n");
-
+
+            xs_warn( "context initialized\n" );
             {
                 xmlParseDocument(ctxt);
                 xs_warn( "document parsed \n");
 			      a list of option => value pairs to
 			      set a different default set of options.
 			      Unless specified otherwise, the options
-			      <literal>load_ext_dtd</literal> and
+			      <literal>load_ext_dtd</literal>,
+			      <literal>expand_entities</literal>, and
 			      <literal>huge</literal> are set to 1.
 			      See <xref linkend="parser-options"/> for a list of libxml2 parser's options.
 			    </para>
             <term>expand_entities</term>
             <listitem>
 	      <para>/parser, reader/</para>
-              <para>substitute entities; possible values are 0 and 1</para>
+              <para>substitute entities; possible values are 0 and 1; default is 1</para>
 	      <para>Note that although this flag disables entity substitution, it
 	      does not prevent the parser from loading external entities;
 	      when substitution of an external entity is disabled, the