[xml] strange entity conversion when using the SAX parser
- From: Aaron Patterson <aaron patterson gmail com>
- To: xml gnome org
- Subject: [xml] strange entity conversion when using the SAX parser
- Date: Tue, 9 Jun 2009 11:02:19 -0700
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&b=c" />
The "&" gets converted to "&" 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:
http://gist.github.com/126688
Thank you!
--
Aaron Patterson
http://tenderlovemaking.com/
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]