[xml] strange entity conversion when using the SAX parser

Hi, I've encountered (what I think is) a strange behavior when using
the sax parser, and I wanted to know if it's normal.

I'm sending this XML through the SAX parser:

  <site url="http://example.com/?a=b&amp;b=c"; />

The "&amp;" gets converted to "&#38;" when the startElement callback
is called.  Is it supposed to do that?  If so, I would like to
understand why.

I've pasted an example demonstrating the issue here:


Thank you!

Aaron Patterson

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