File libxml2-parser.patch of Package kdelibs3
diff -wruN kdelibs-3.5.10.orig/kdoctools/meinproc.cpp kdelibs-3.5.10/kdoctools/meinproc.cpp
--- kdelibs-3.5.10.orig/kdoctools/meinproc.cpp 2007-05-14 11:52:42.000000000 +0400
+++ kdelibs-3.5.10/kdoctools/meinproc.cpp 2014-06-19 07:39:49.964027600 +0400
@@ -222,7 +222,7 @@
if (style_sheet != NULL) {
- xmlDocPtr doc = xmlParseFile( QFile::encodeName( args->arg( 0 ) ) );
+ xmlDocPtr doc = xmlReadFile( QFile::encodeName( args->arg( 0 ) ), NULL, XML_PARSE_NOENT|XML_PARSE_DTDLOAD|XML_PARSE_NONET );
xmlDocPtr res = xsltApplyStylesheet(style_sheet, doc, ¶ms[0]);
diff -wruN kdelibs-3.5.10.orig/kdoctools/xslt.cpp kdelibs-3.5.10/kdoctools/xslt.cpp
--- kdelibs-3.5.10.orig/kdoctools/xslt.cpp 2006-05-22 22:14:22.000000000 +0400
+++ kdelibs-3.5.10/kdoctools/xslt.cpp 2014-06-19 07:41:21.114986500 +0400
@@ -68,7 +68,7 @@
INFO(i18n("Parsing document"));
- xmlDocPtr doc = xmlParseFile( pat.latin1() );
+ xmlDocPtr doc = xmlReadFile( pat.latin1(), NULL, XML_PARSE_NOENT|XML_PARSE_DTDLOAD|XML_PARSE_NONET);
xsltTransformContextPtr ctxt;
ctxt = xsltNewTransformContext(style_sheet, doc);