RE: [xml] Substitution of nested entity references
- From: "Henke, Markus" <Markus_Henke ordat com>
- To: "'xml gnome org'" <xml gnome org>
- Subject: RE: [xml] Substitution of nested entity references
- Date: Thu, 11 Apr 2002 09:23:04 +0200
-----Original Message-----
From: Daniel Veillard [mailto:veillard redhat com]
Sent: Wednesday, April 10, 2002 8:30 PM
To: Henke, Markus
Cc: 'xml gnome org'
Subject: Re: [xml] Substitution of nested entity references
On Wed, Apr 10, 2002 at 07:16:38PM +0200, Henke, Markus wrote:
<cut />
You'll get "> Text &aNestedEnt; MoreText" !!!
*That's* what i talk about all the time... 8)
Argh, apologies,
(Sigh of relief) I've nearly begun to doubt that i'm in the
right ballpark... 8)
< < <cut />
With an xml document like the one above you'll get
xmlNodeGetContent(xmlDocGetRootElement(docPtr)))
== "Content &aNestedEnt; MoreContent";
which IMHO isn't correct (resp. not what i would've expected).
Exact,
Maybe you could revise my approach under this new perspective
(provided that i'm right and we've talked at cross purposes
before)?
yes, simply fix xmlNodeGetContent() and xmlNodeListGetString(,,1) to
behave correctly in this case. I actually think it is a
libxml2 bug and
I would appreciate if you could take care of it since you
have explored
much of it. Simply recurse on entity refs content to complete the work
currently handled only at level 1 of entity indirection. As explained
before this shall not loop since it would result in a well formedness
error to have a loop in entities references.
thanks !
Daniel
OK, i'll do so. But first i'll try get these GnuWin32 diffTools
up and run...
See you soon, Markus
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]