Re: [xml] Entity reference
- From: Daniel Veillard <veillard redhat com>
- To: "Sze, Tak F" <tak f sze intel com>
- Cc: "'xml gnome org'" <xml gnome org>
- Subject: Re: [xml] Entity reference
- Date: Thu, 12 Apr 2001 14:37:52 -0400
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]