Re: [xml] entity substitution

Date view Thread view Subject view Author view

From: Joe McAlerney (joey@silicondefense.com)
Date: Fri Sep 22 2000 - 17:22:54 EDT


Daniel Veillard wrote:
>
> What version are you using. Are you using SAX or DOM ?
>

DOM

> > I have not changed the value for substituting entities, so it's is still
> > 0. I have explicitly called xmlSubstituteEntitiesDefault(0) as a test,
> > but nothing changed. Additionally, I have not specified entities of any
> > kind. Why is xmlGetDocEntity being called if we are not supposed to be
> > substituting entities?
>
> To support predefined entities which are automatically substituted.
> To verify some wellformedness constraints one the entities content too.
>
> > I'm sure the problem exists in my understanding of libxml's entity
> > substitution behavior, rather than the library itself. If anyone can
> > enlighten me, it would be most appreciated.
>
> A gdb backtrace is not very helpful without the associated version
> number or more informations about the interface used. Especially using
> SAX clearly makes entity processing far more complex :
> http://xmlsoft.org/#Entities
>
> As this paragraph explain too, xmlSubstituteEntitiesDefault() does
> not mean that the parser will not try to access the entity, but that
> the entity reference will (not) be replaced by its content in the output

Ahh, I see.

> In your case, the problem comes from doc being NULL when calling the
> entity resolution routine. This bug was fixed in the last month, so what
> version are you using ???

2.2.2, so that might explain it. I apologize, I might have missed the
discussion about this. I'll upgrade and give it another shot.

Thanks,

-Joe M.

----
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 : Fri Sep 22 2000 - 17:43:26 EDT