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

Re: [xml] predefined entity question.



On Wed, Jan 28, 2009 at 03:41:01PM -0600, George Neill wrote:
> Hi All,
> 
>  I have an xml document which looks like this,
> 
> <root>
>   <element>&amp;&apos;</element>
> </root>
> 
> I am using the xmlReader interface with the XML_PARSE_NOENT option
> turned on.  I am grabbing the value using xmlTextReaderReadInnerXml()
> and I expect it to look like this,
> 
> &'
> 
> but it is
> 
> &amp;'
> 
> Is there something unique about the predefined entity &amp; as content
> of an element once the document has been parsed?

http://xmlsoft.org/html/libxml-xmlreader.html#xmlTextReaderReadInnerXml

  you asked for markup i.e. the serialized form, I thing you got what
you asked for, use a different function.

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]