[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now


entityExpansionLimit warning

Posted on 2006-03-30
Medium Priority
Last Modified: 2011-09-20
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?
Question by:guykirschbaum
  • 2
LVL 92

Expert Comment

ID: 16336863
you could use SAX to do the parsing.

Author Comment

ID: 16353242
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?
LVL 92

Accepted Solution

objects earned 1000 total points
ID: 16353616
SAX will all you to take action during the parsing, and stop it (the parsing)

Featured Post

[Webinar] Cloud and Mobile-First Strategy

Maybe you’ve fully adopted the cloud since the beginning. Or maybe you started with on-prem resources but are pursuing a “cloud and mobile first” strategy. Getting to that end state has its challenges. Discover how to build out a 100% cloud and mobile IT strategy in this webinar.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Java contains several comparison operators (e.g., <, <=, >, >=, ==, !=) that allow you to compare primitive values. However, these operators cannot be used to compare the contents of objects. Interface Comparable is used to allow objects of a cl…
Introduction Java can be integrated with native programs using an interface called JNI(Java Native Interface). Native programs are programs which can directly run on the processor. JNI is simply a naming and calling convention so that the JVM (Java…
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…
Suggested Courses
Course of the Month18 days, 20 hours left to enroll

834 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question