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]