When writing rss xml to the client browser , is there any reason to load the
rss xml string into an XmlDocument and then Response.Write( ) the
XmlDocument.Out erXML.ToString( ) ?
option 1:
string rssXml = null;
-- build rssXML --
Response.Write( rssXml);
option 2:
string rssXml = null;
-- build rssXML --
XmlDocument xmlDoc = new XmlDocument;
xmlDoc.Load(rss Xml);
Response.Write( xmlDoc.OuterXml .ToString());
rss xml string into an XmlDocument and then Response.Write( ) the
XmlDocument.Out erXML.ToString( ) ?
option 1:
string rssXml = null;
-- build rssXML --
Response.Write( rssXml);
option 2:
string rssXml = null;
-- build rssXML --
XmlDocument xmlDoc = new XmlDocument;
xmlDoc.Load(rss Xml);
Response.Write( xmlDoc.OuterXml .ToString());
Comment