On Fri, Aug 16, 2013 at 4:47 PM, j j wrote:Hi j j,
>
> Hi
>
> I'm using xmlParseChunk function to parse the following xml
> fragment. xmlParseChunk takes is as input.
>
> ... <car color="id="43""> ...
>
> the resulting attribute is as follows:
> color="id"43""
>
> How can I force xmlParseChunk not to encode " as " and leave it intact. I
> would expect the following resulting attribute:
>
> color="id="43""
>
When your XML contains color="id="43""
then the name of the attribute is "color" and the value of the
attribute is the following seven characters.
i d = " 4 3 "
Since this is now a C string, not XML source, you get the value that
" represents, i.e. a double-quote character. It is
xmlParseChunk's job to make this transformation.
Csaba