title: Need advice on removing xml row
body: <p>I'm using a CMS and found a function to generate a rss feed from content within folders. However I would like one of the rows removing from the list. I've done my research and I 'think' I should be using XmlDocument class to help me remove the row I don't want. I've used Firebug and FirePath to get the XPath - but I cant seem to figure out how to apply it appropriately. I am also uncertain of whether I should be using .Load or .LoadXml - I've used the latter seing as though the feed displays fine. However I have had to convert ToString() to get rid of that overloaded match error....</p>
  
  <p>The row I want removing is called "Archived Planes"
  The XPath I get for FirePath is ".//*[@id='feedContent']/xhtml:div[11]/xhtml:h3/xhtml:a"</p>
  
  <p>I am also assuming that .RemoveChild(node); will remove it out of rssData before I Response.Write. Thanks</p>
  
  <pre><code>Object rssData = new object();
  Cms.UI.CommonUI.ApplicationAPI AppAPI = new Cms.UI.CommonUI.ApplicationAPI();
  rssData = AppAPI.ecmRssSummary(50, true, "DateCreated", 0, "");
  Response.ContentType = "text/xml";
  
  XmlDocument xmlDocument = new XmlDocument();
  
  xmlDocument.LoadXml(rssData.ToString());
  
  XmlNode node = xmlDocument.SelectSingleNode(@"xhtml:div/xhtml:h3/xhtml[a = 'Archived Planes']");
  
      if (node != null)
      {
          node.ParentNode.RemoveChild(node);
      }
  
  Response.Write(rssData);
  </code></pre>
  
  <h2>Edited to include output below</h2>
  
  <pre><code>This is the what the response.write from rssData is pumping out:
  &lt;?xml version="1.0" ?&gt; 
  &lt;rss xmlns:xsd="http://www.w3.org/2001/XMLSchema"     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="2.0"&gt;
  &lt;channel&gt;
  &lt;title&gt;Plane feed&lt;/title&gt;
  &lt;link&gt;http://www.domain.rss1.aspx&lt;/link&gt;
  &lt;description&gt;&lt;/description&gt;
  &lt;item&gt;
  &lt;title&gt;New Planes&lt;/title&gt;
  &lt;link&gt;http://www.domainx1.aspx&lt;/link&gt;
  &lt;description&gt;
  This is the description
  &lt;/description&gt;
  &lt;author&gt;Andrew&lt;/author&gt;
  &lt;pubDate&gt;Thu, 16 Aug 2012 15:55:53 GMT&lt;/pubDate&gt;
  &lt;/item&gt;
  &lt;item&gt;
  &lt;title&gt;Archived Planes&lt;/title&gt;
  &lt;link&gt;http://www.domain23.aspx&lt;/link&gt;
  &lt;description&gt;
  Description of Archived Planes
  &lt;/description&gt;
  &lt;author&gt;Jan&lt;/author&gt;
  &lt;pubDate&gt;Wed, 15 Aug 2012 10:34:23 GMT&lt;/pubDate&gt;
  &lt;/item&gt;
  &lt;/channel&gt;
  &lt;/rss&gt;
  </code></pre>
  
  <hr>