I have this xml string:
Get the namespace somehow, like
XNameSpace a = doc.Root.GetDefaultNamespace();
or, probably better:
XNameSpace a = doc.Root.GetNamespaceOfPrefix("a");
and then use it in your queries:
// to get
XElement f = doc.Element(a + "feed");
You can also set the namespace from a literal string, but then avoid var
.