I have an XmlException being thrown trying to use XslCompiledTransform while
using the google api. My suspicion is there is some html decoding happening
that I want to prevent...
something like this
><a href="http://news.google.com/news/url?sa=T&ct=us/2i-0&fd=A&url=http://www.boston.com/news/nation/washington/articles/2008/02/26/senate_advances_bill_to_cut_war_funding&cid=11 37103998&ei=Q77ER6-vMY7eqgPA1vGqAQ"><imgbeing changed into this
><a href="http://news.google.com/news/url?sa=T&ct=us/2i-0&fd=A&url=http://www.boston.com/news/nation/washington/articles/2008/02/26/senate_advances_bill_to_cut_war_funding&cid=11 37103998&ei=Q77ER6-vMY7eqgPA1vGqAQ"><imghere is the code being used...
XmlReaderSettings readerSettings = new XmlReaderSettings();
//works fine when using this ATOM 1.0//
XmlReader reader =
XmlReader.Create("http://www.nfl.com/rss/rsslanding?searchString=home",
readerSettings);
XslCompiledTransform transform = new XslCompiledTransform();
transform.Load(@"C:\\myformat.xslt");
StringWriter writer = new StringWriter();
transform.Transform(reader, null, writer);
mydataset.ReadXml(new StringReader(writer.ToString()));
//xmlexception using results from google api//
XmlReader reader =
XmlReader.Create("http://www.google.com/reader/atom/feed/http%3A%2F%2Fnews.google.com%2Fnews", readerSettings);
If anyone has run across this, any help would be appreciated.