RE: [xml] Entity reference

Are you saying if I call xmlSubstituteEntitiesDefault with
a value 1, it would work, or do I still need to implement entityDecl

I tried that with xmllint, it seemed to work, but it 
it does not work with testSAX. I am not sure why.

- Tak Sze

-----Original Message-----
From: Daniel Veillard [mailto:veillard redhat com]
Sent: Thursday, April 12, 2001 11:38 AM
To: Sze, Tak F
Cc: 'xml gnome org'
Subject: Re: [xml] Entity reference

On Thu, Apr 12, 2001 at 11:18:51AM -0700, Sze, Tak F wrote:
libxml has compatible SAX-like interface with expat. However, 
entity reference is not automatically replaced with the entity value
under libxml. For example:

 <!DOCTYPE doc [
 <!ENTITY test "TEST">

Under libxml, the character callback returned "&test;"
while expat returned "TEST".

  yes, you should also get entityDecl callbacks, you will need to
implement it. Did you read ? Did you use
xmlSubstituteEntitiesDefault() ?


Daniel Veillard      | Red Hat Network
veillard redhat com  | libxml Gnome XML XSLT toolkit | Rpmfind RPM search engine

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]