How can I generate Atom Feed which will contain the namespaces displayed in the image below? All the nodes of the Atom feed have to start with "a:".
Here is what I am doing right now, however it doesn't work.
SyndicationFeed feed = new SyndicationFeed();
XmlQualifiedName key = new XmlQualifiedName("os", "xmlns");
feed.AttributeExtensions.Add(key, "http://a9.com/-/spec/opensearch/1.1/");
Thanks!
I believe it should be
UPDATE:
After reading your question more carefully, I believe you could accomplish this by overriding the WriteStartElement and WriteStartAttribute methods of the XmlWriter instance used by the Atom10FeedFormatter. You can do this by implementing a custom XmlWriter class like the example below.
Using your custom class with the Atom10FeedFormatter
produces the desired output