Categories
BLOG

new xname bong

Using xname in Linq-to-xml

I am writing some code to generate an opml file from a list of rss feeds (parsed) on my site. The user will select checkboxes from a datagrid of rss feeds on my site, and when pressing a button, the heavy lifting will happen.

Anyway, I have code like this:

list is a collection of feed objects (e.g. hanselman rss feed, codinghorror rss feed, etc). The datagrid will have a checkbox and pressing the button below this grid, the code above will execute (I have also got the code for the xml declarations etc).

When I use the Element(. ) method, I need to provide XName. This has an internal constructor which I cannot use. How can I pass this parameter in?

Using xname in Linq-to-xml I am writing some code to generate an opml file from a list of rss feeds (parsed) on my site. The user will select checkboxes from a datagrid of rss feeds on my site,