entityExpansionLimit warning

Hello
I am aware of the reason and significance of entityExpansionLimit property of XMLParser in Java but...
I have an application which needs to be aware of the count of the entities reached so far so once it get close to the limitation, a warning will popup.
Is there a chance to accomplish that? How can I check when I reach that limit but one step before that crucial moment where my data becoames invalid?
Thanks
guykirschbaumAsked:
Who is Participating?
 
objectsCommented:
SAX will all you to take action during the parsing, and stop it (the parsing)
0
 
objectsCommented:
you could use SAX to do the parsing.
0
 
guykirschbaumAuthor Commented:
Hi
Why will that do good?
If there's no limitation in SAX's parser than I create a security hole (after all this limitation is to prevent denial of service) and if there's a limitation than why is it different?
Thanks
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.