java - Best way to parse large XML document in Jython -
i need parse large (>800mb) xml file jython. xml not nested, containing million relevant elements. need convert these elements real objects.
i've used nu.xom.*
before, i've switched java jython, library fails following message:
the parser has encountered more "64,000" entity expansions in document; limit imposed application.
i have not found way fix this, have xml library. either java or jython-compatible python , should efficient. pythonic great, nu.xom.*
simple not pythonic. have suggestions?
sax best way parse large documents.
sounds you're hitting default expansion limit. see note:
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4843787
you need set system property "entityexpansionlimit" change default.
(added) see answer question.
Comments
Post a Comment