Sounds like a problem with your chosen XML parser, not with Saxon. Try a different XML parser.
Michael Kay

From: [] On Behalf Of Gruenewald, Terry
Sent: 07 May 2004 18:43
Subject: [saxon] Parser has reached the entity expansion limit "64,000"

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.