Can anybody make sense of this crazy and inconsistent results?
// IE7 Feed Reading View disabled displays this raw XML
<?xml version="1.0" encoding="utf-8" ?>
<!-- AT&T HTML entities & XML <elementsare displayed -->
<rss version="2.0">
<channel>
<title>AT&T HTML entities & XML <elementsare displayed</title>
....
<description>
<![CDATA[ AT&T HTML entities & XML <elementsusing CDATA ]]>
</description>
....
The XML comment data comes directly from the TextBox on the Form
as text. The XmlTextWriter writer.WriteElementString("title", title)
generates
the <titleelement and writer.WriteCData(description) generates the
<descriptionelement.
// Drag the testRSS.xml file into NotePad displays
<?xml version="1.0" encoding="utf-8"?>
<!--AT&T HTML entities & XML <elementsare displayed-->
<rss version="2.0">
<channel>
<title>AT&T HTML entities & XML <elements> are
displayed</title>
<description><![CDATA[AT&T HTML entities & XML <elementsusing
CDATA]]></description>
// Enable IE7 Feed Reading View and observe that IE7
// either violates XML by encoding HTML entities and XML elements
// or encodes unencoded XML data for display of RSS
AT&T HTML entities & XML <elementsare displayed
Its bad enough IE7 is likely still a sloppy parser and will violate XML
validity rules
by encoding unencoded feed data which really makes life all FUBAR for an
application developer but worse yet what is encoding the HTML entities and
the
XML element in the <titleelement when the testRSS.xml file is dragged into
NotePad?
Does the XmlTextWriter encode HTML and XML? How does the data in the
<titleelement in the file end up encoded?
<%= Clinton Gallagher
NET csgallagher AT metromilwaukee.com
URL http://clintongallagher.metromilwaukee.com/