Exception for no memory while parsing large XML file in SAX parser

Subhan

I've read some articles on advantages of using SAX parser for parsing XML files in java over using DOM. The one which appeals me the most (as discussed here) is that

Sax is suitable for large XML File and The SAX parser does not loads the XML file as a whole in the memory.

But now as i've written a parser using SAX to derive the entities out of an XML file for a large file of almost 1.4 GB it generates the following Exception.

org.xml.sax.SAXParseException; lineNumber: 1; columnNumber: 1; The parser has encountered more than "64,000" entity expansions in this document; this is the limit imposed by the application.

What is the problem with the memory if the file as whole is not loaded in the memory.

How can i resolve the issue?

Necreaux

Change the entity expansion limit with a JVM parameter:

-DentityExpansionLimit=1000000

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

Parsing an XML file with Nokogiri SAX parser

From Dev

File Not Found Exception while parsing large XML File in Java

From Dev

Parsing XML using SAX Parser in Python 3

From Dev

Parsing and updating xml using SAX parser in java

From Dev

Parsing XML using SAX Parser in Python 3

From Dev

Java : Parsing xml file using SAX/XPATH

From Dev

Simple xml SAX parser error while retrieve from HTTP

From Dev

Memory usage while parsing XML file into Google App Engine datastore

From Dev

Parsing issue in SAX parser android

From Dev

org.xml.sax.SAXParseException: Unexpected token while parsing XML

From Dev

SAX error() handler method called while parsing but no exception thrown -- why?

From Dev

Sax parsing a large file from S3

From Dev

Parse XML file containing umlaute using SAX parser

From Dev

how to find the node which has child node while parsing XML file using DOM parser in java

From Dev

how to find the node which has child node while parsing XML file using DOM parser in java

From Dev

Android XML using SAX Parser

From Dev

How to skip the parent tag, based on the value of a child tag in XML Parsing using SAX Parser

From Dev

NullReferenceException while parsing XML File

From Dev

Jquery crashes while parsing large csv file

From Dev

Jquery crashes while parsing large csv file

From Dev

Exception while Object to xml parsing using jackson

From Dev

Android SAX XML parsing error

From Dev

Perl XML::SAX partial parsing

From Dev

XML parsing exception org.xml.sax.SAXParseException cvc-elt.1

From Dev

Android XML file parsing file not found exception

From Dev

Writing Large File To Disk Out Of Memory Exception

From Dev

how to get null while parsing xml with geotools parser

From Dev

how to get null while parsing xml with geotools parser

From Dev

Parsing large XML file in R is very slow

Related Related

  1. 1

    Parsing an XML file with Nokogiri SAX parser

  2. 2

    File Not Found Exception while parsing large XML File in Java

  3. 3

    Parsing XML using SAX Parser in Python 3

  4. 4

    Parsing and updating xml using SAX parser in java

  5. 5

    Parsing XML using SAX Parser in Python 3

  6. 6

    Java : Parsing xml file using SAX/XPATH

  7. 7

    Simple xml SAX parser error while retrieve from HTTP

  8. 8

    Memory usage while parsing XML file into Google App Engine datastore

  9. 9

    Parsing issue in SAX parser android

  10. 10

    org.xml.sax.SAXParseException: Unexpected token while parsing XML

  11. 11

    SAX error() handler method called while parsing but no exception thrown -- why?

  12. 12

    Sax parsing a large file from S3

  13. 13

    Parse XML file containing umlaute using SAX parser

  14. 14

    how to find the node which has child node while parsing XML file using DOM parser in java

  15. 15

    how to find the node which has child node while parsing XML file using DOM parser in java

  16. 16

    Android XML using SAX Parser

  17. 17

    How to skip the parent tag, based on the value of a child tag in XML Parsing using SAX Parser

  18. 18

    NullReferenceException while parsing XML File

  19. 19

    Jquery crashes while parsing large csv file

  20. 20

    Jquery crashes while parsing large csv file

  21. 21

    Exception while Object to xml parsing using jackson

  22. 22

    Android SAX XML parsing error

  23. 23

    Perl XML::SAX partial parsing

  24. 24

    XML parsing exception org.xml.sax.SAXParseException cvc-elt.1

  25. 25

    Android XML file parsing file not found exception

  26. 26

    Writing Large File To Disk Out Of Memory Exception

  27. 27

    how to get null while parsing xml with geotools parser

  28. 28

    how to get null while parsing xml with geotools parser

  29. 29

    Parsing large XML file in R is very slow

HotTag

Archive