--- a/parser.c 2014-05-20 21:51:44.662586440 -0700 +++ b/parser.c 2014-05-20 21:54:33.239045181 -0700 @@ -2438,8 +2438,8 @@ xmlCharEncoding enc; /* - * Note: external parsed entities will not be loaded, it is - * not required for a non-validating parser, unless the + * Note: external parameter entities will not be loaded, it + * isnot required for a non-validating parser, unless the * option of validating, or substituting entities were * given. Doing so is far more secure as the parser will * only process data coming from the document entity by @@ -2448,6 +2448,7 @@ if ((entity->etype == XML_EXTERNAL_PARAMETER_ENTITY) && ((ctxt->options & XML_PARSE_NOENT) == 0) && ((ctxt->options & XML_PARSE_DTDVALID) == 0) && + ((ctxt->options & XML_PARSE_DTDLOAD) == 0) && (ctxt->validate == 0)) return; @@ -12516,6 +12517,9 @@ return(NULL); } + /* We are loading a DTD */ + ctxt->options = XML_PARSE_DTDLOAD; + /* * Set-up the SAX context */