When quering XML elements that belong to a namespace, you have to create an XmlNamespaceManager, and pass it to every SelectNodes or SelectSingleNode statement you make. This object is used to resolve the namespaces in the queries, so that you can get to the correct resultset. You can't access the data without this feature.
First you will have to modify your xml like this. Add "DSS" predix with your first xmlns attribute as follows.
<worksheet xmlns:DSS="http://schemas.openxmlformats.org/spreadsheetml/2006/main" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships">
Then you can write the following code to get the correct result.
XmlDocument doc = new XmlDocument();
doc.Load(Server.MapPath("XMLFile.xml"));
XmlNamespaceManager nsMgr = new XmlNamespaceManager(doc.NameTable);
nsMgr.AddNamespace("DSS", "http://schemas.openxmlformats.org/spreadsheetml/2006/main");
nsMgr.AddNamespace("r", "http://schemas.openxmlformats.org/officeDocument/2006/relationships");
XmlNodeList nodes = doc.SelectNodes("//worksheet/sheetData/row[@r='1']",nsMgr);
XmlDocument doc = new XmlDocument();
doc.Load(Server.MapPath("XMLFile.xml"));
XmlNamespaceManager nsMgr = new XmlNamespaceManager(doc.NameTable);
nsMgr.AddNamespace("DSS", "http://schemas.openxmlformats.org/spreadsheetml/2006/main");
nsMgr.AddNamespace("r", "http://schemas.openxmlformats.org/officeDocument/2006/relationships");
XmlNodeList nodes = doc.SelectNodes("//worksheet/sheetData/row[@r='1']",nsMgr);
For XQuery , please view the following link.
http://cankansu.blogspot.com/2008/11/using-xquery-in-c.html
Hope it will help.
If my post solves your problem, please mark it as an answer.