I was processing a large XML file and got this error.  Upon further investigation I found that the reason I was getting this was because I had too many &'s in my XML (about 108,000).  I added DentityExpansionLimit=128000 to my java command line and was able to get through that XML file.  My question is is there a way to set this to unlimited? 

The reason for the limit is if you have to handle unfriendly XML, this prevents the CPU from going to 100% if someone tries a Denial of Service type attack.  But all of my XML is friendly.