On Thu, Jul 9, 2009 at 4:39 PM, Daniel Veillard<[email protected]> 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<[email protected]> 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?

Regards!
Bo
_______________________________________________
xml mailing list, project page  http://xmlsoft.org/
[email protected]
http://mail.gnome.org/mailman/listinfo/xml

Reply via email to