Re: [xml] predefined entity question.



Daniel,

On Thu, Jan 29, 2009 at 7:35 AM, Daniel Veillard <veillard redhat com> wrote:
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.

I did, dang, sorry for the noise.  Thanks for the advice.

Later,
George



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