Python sax parsing xml file encountered an error, I wonder if you have a solution?

a.xml:

<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE dblp SYSTEM "dblp.dtd">
<article mdate="2017-05-28" key="journals/acta/Saxena96">
    <author>Sanjeev Saxena</author>
    <author>q</author>
    <author>w</author>
    <title>Parallel Integer Sorting and Simulation Amongst CRCW Models</title>
    <pages>607-619</pages>
    <year>1996</year>
    <volume>33</volume>
    <journal>Acta Inf</journal>
    <number>7</number>
    <url>db/journals/acta/acta33.html-sharpSaxena96</url>
    <ee>htt</ee>
</article>

python Code:

just get rid of the above sentence, think of rewriting with EntityResolver, ignore identifying dtd, but don"t know how to rewrite it.

Mar.04,2021
Menu