I\'ve browsed the questions with similar titles but cannot seem to find exactly what I\'m looking for,if anyone spotted a similar question kindly point me to the thread.Here is
Scott Hanselman has an article on how to get the namespaces:
http://www.hanselman.com/blog/GetNamespacesFromAnXMLDocumentWithXPathDocumentAndLINQToXML.aspx