We help IT Professionals succeed at work.

entityExpansionLimit warning

guykirschbaum
on
Medium Priority
610 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
Comment
Watch Question

Mick BarryJava Developer
CERTIFIED EXPERT
Top Expert 2010

Commented:
you could use SAX to do the parsing.

Author

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
Java Developer
CERTIFIED EXPERT
Top Expert 2010
Commented:
SAX will all you to take action during the parsing, and stop it (the parsing)

Not the solution you were looking for? Getting a personalized solution is easy.

Ask the Experts
Access more of Experts Exchange with a free account
Thanks for using Experts Exchange.

Create a free account to continue.

Limited access with a free account allows you to:

  • View three pieces of content (articles, solutions, posts, and videos)
  • Ask the experts questions (counted toward content limit)
  • Customize your dashboard and profile

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.