Search code examples
xmlxsltxml-parsingxslt-1.0libxml2

XSLT 1.0 (xsltproc) - Unable to Parse Huge XML


I am trying to parse an input xml file that is 13,00,000 lines long with a size of 56 MB, using xsltproc. I get the below error:

input.xml:245393: parser error : internal error: Huge input lookup
              "description" : "List of values for possible department codes"
                          ^
unable to parse input.xml

My xsltproc was able to process an xml file that was 9,30,000 lines long with a size of 48 MB.

In fact, I tried decreasing the xml lines to 600,000 by removing the unnecessary parts. Still, same error, which is strange, because it is able to parse 900,000 but not 600,000.

How do I resolve this issue?


Solution

  • Using Oxygen XML Editor (Xalan) resolved my issue.