Re: [xml] xmlNodeGetContent() for XML_ENTITY_REF_NODE
- From: Daniel Veillard <veillard redhat com>
- To: "Henke, Markus" <Markus_Henke ordat com>
- Cc: "'xml gnome org'" <xml gnome org>
- Subject: Re: [xml] xmlNodeGetContent() for XML_ENTITY_REF_NODE
- Date: Fri, 22 Feb 2002 10:06:33 -0500
On Fri, Feb 22, 2002 at 03:35:02PM +0100, Henke, Markus wrote:
I'm not sure you can get this recursive.
Hum, you mean nested entity references? Weird, i've never
yep
thought about this. My app instantly crashed as i've tested
it. Smell's like a new debugging session... 8]
I'd hoped that i could pilfer at 'xmlGetProp()', but it won't
do a recursiv entity substitution!?
However, i've to do this and i should manage it since cyclic
entity refs are illegal.
BTW, the libxml parser detects cyclic entity
references but it seems that it loops about 40 times?
Call me lazy, I need to fix and report only the first one
Another way would be to change xmlNodeGetContent()
behaviour on entities nodes.
I'll try to code a recursiv entity substitution for
XML_ENTITY_REF_NODEs. If it works for me i'll send
it to the list so you can decide if it makes sense to
include it in xmlNodeGetContent() (and possibly
xmlGetProp()...).
Hum, okay,
Actually it's a pointer to the associated ENTITY_DEF
node content's, the subtree are shared.
I see. Debugging don't show that (at least not obvious).
yes a pointer can't tell if it's shared (wouldn;t that be cool !)
Then xmlSubstituteEntitiesDefault(0) is what i need...8)
probable. it's --noent option for xmllint
Daniel
--
Daniel Veillard | Red Hat Network https://rhn.redhat.com/
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]