I used SAX bacause with the 'normal' parser we had problems in relation to Performance. I read xml-files with 40000 to 100000 records on data. And this took hours with other parsers.
I called xmlSubstituteEntitiesDefault(1) to my application at <startDocumentSAXCallBackFunc>. It crashes.
On Wed, Apr 25, 2007 at 03:29:36PM +0200, Shirazi Babak wrote:
> doc = xmlSAXParseFileWithData(&sax, stpI->szFilename, 0, (void
> How could I turn on
> "...entities substitution at the parser level."
> In this situation?
Do *NOT* use SAX if you're not able to do minimal debugging and tweaking on your own. Why did you choose to use SAX ? I usually strongly suggest to newbies to not try to use it !
You can try:
- get the parser context and set ctxt->replaceEntities to 1
this may require to use another API
which is bad because it change the default globally for the library