RE: [xml] Entity reference
- From: "Sze, Tak F" <tak f sze intel com>
- To: "'xml gnome org'" <xml gnome org>
- Subject: RE: [xml] Entity reference
- Date: Thu, 12 Apr 2001 13:40:57 -0700
Are you saying if I call xmlSubstituteEntitiesDefault with
a value 1, it would work, or do I still need to implement entityDecl
callback?
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">
]>
<body>&test;</body>
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 http://xmlsoft.org/#Entities ? Did you use
xmlSubstituteEntitiesDefault() ?
Daniel
--
Daniel Veillard | Red Hat Network
http://redhat.com/products/network/
veillard redhat com | libxml Gnome XML XSLT toolkit http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]