Re: [xml] Entity with elements inside it?
- From: Bo Yang <struggleyb nku gmail com>
- To: xml gnome org
- Subject: Re: [xml] Entity with elements inside it?
- Date: Thu, 9 Jul 2009 17:27:51 +0800
On Thu, Jul 9, 2009 at 4:39 PM, Daniel Veillard<veillard redhat com> wrote:
On Thu, Jul 09, 2009 at 04:01:26PM +0800, Bo Yang wrote:
On Thu, Jul 9, 2009 at 2:10 PM, Daniel Veillard<veillard redhat com> wrote:
On Thu, Jul 09, 2009 at 12:14:27PM +0800, Bo Yang wrote:
ps: I use xmlParseChunk to parse my file part by part. I don't think I
can call another xmlParseChunk to parse the entity string... :)
You need to create the parser context with XML_PARSE_NOENT option
Thanks for your reply, Daniel. But I did not find any param used to
pass option in xmlCreatePushParserCtxt. And I pass it in at
xmlCtxtUseOptions, I think they have the same effect.
yes thay should be fine
And the option XML_PARSE_NOENT means, there will be no
entity_reference node created, right?
Entity references will be replaced by their replacement content
when found (i.e. assuming it's in the internal subset or the external
subset is loaded and the entity found there), yes.
But, what I want is that keep the entity_ref node created and then
append the entity content as a sub-dom-tree to the entity_ref. Is
there anyway to do this with libxml2?
] [Thread Prev