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

hibernate - How to load global settings frequently used in application in Java -

python 3.x - Mapping specific letters onto a list of words -

objective c - Ownership modifiers with manual reference counting -