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

x
?
Solved

entityExpansionLimit warning

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

Expert Comment

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

Author Comment

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

Accepted Solution

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

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