Re: [xml] Entity with elements inside it?



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.

Daniel

-- 
Daniel Veillard      | libxml Gnome XML XSLT toolkit  http://xmlsoft.org/
daniel veillard com  | Rpmfind RPM search engine http://rpmfind.net/
http://veillard.com/ | virtualization library  http://libvirt.org/



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]