[xml] Entity substitution in SAX callbacks

Date view Thread view Subject view Author view

From: Dave Madole (dmadole@cddb.com)
Date: Wed Nov 01 2000 - 20:26:02 EST


I am trying to run a document with some entity encoded (by libxml)
Japanese characters through the SAX parser - I DON'T want entities
substituted.

I have called:

xmlSubstituteEntitiesDefault(0);

yet the SAX parser seems to continue to substitute
entities - entity substitution of the following creates havoc:

<document>
<element>&#x4EEE;&#x9762;&#x30E9;&#x30A4;&#x30C0;&#x30FC;BGM&#x5927;&#x5168;&#x96C6;(&#x4E0B;)</element>

</document>

How can I turn it off? I have tried, among other desperate measures,
nulling out the entity callbacks. The preceding example puts the SAX
parser (made from testSAX.c with no substantial change) into an endless
loop!

I am sure I am missing something pretty basic here.

Thanks,

Dave

----
Message from the list xml@rpmfind.net
Archived at : http://xmlsoft.org/messages/
to unsubscribe: echo "unsubscribe xml" | mail  majordomo@rpmfind.net


Date view Thread view Subject view Author view

This archive was generated by hypermail 2b29 : Wed Nov 01 2000 - 21:43:36 EST