Link to home
Start Free TrialLog in
Avatar of guykirschbaum
guykirschbaum

asked on

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
Avatar of Mick Barry
Mick Barry
Flag of Australia image

you could use SAX to do the parsing.
Avatar of guykirschbaum
guykirschbaum

ASKER

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
ASKER CERTIFIED SOLUTION
Avatar of Mick Barry
Mick Barry
Flag of Australia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial