xml parsing - VTD-xml ignore well formed file -


i parse xml file (this peace of file):

<?xml version="1.0" encoding="iso-8859-1"?> <!doctype dblp system "./resource/init/dblp.dtd"> <dblp> <www mdate="2002-01-03" key="www/fr/ardentsoftware"> <title>ardent software</title> <url>http://www.ardentsoftware.fr</url> </www> . . . . </dblp> 

with vtd-xml , had exception : com.ximpleware.extended.entityexceptionhuge: errors in entity: illegal entity char mean file contain "entities" ,so how can make vtd-xml ignore validation file make perssing correctly .

        vtdgenhuge vg = new vtdgenhuge();         xmlmemmappedbuffer xb = new xmlmemmappedbuffer();         try{         xb.readfile("./resource/init/dblp.xml");         vg.setdoc(xb);         vg.parse(false);         vtdnavhuge vnh = vg.getnav(); 

thanks

the vtdgenhuge parser throws error simple reason xml file contains invalid entity references... correct error , should work fine


Comments

Popular posts from this blog

apache - Remove .php and add trailing slash in url using htaccess not loading css -

javascript - jQuery show full size image on click -