Re: [xml] Disable external entity processing



Hello,

I'm parsing XML data using simple API :

xmlCreatePushParserCtxt(NULL, NULL, buf, size, "file.xml");
xmlParseChunk(ctx, buf, size, 0);

I would like to get some direction of how can i disable external entities to be processed like:
 
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE bar [
<!ENTITY % external SYSTEM "http://externalhost/ext.xml">
%external;
%a;
%b;
]>

Thanks

Breno



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]