WITH XMLNAMESPACES('EmployeeXSD' AS E)
SELECT
nref.value ('@DepartmentID', 'int'),
nref2.value('@EmployeeID', 'int'),
nref2.value('@Salary', 'money')
FROM@xml.nodes('/E:Department') AS R(nref)
CROSS APPLY R.nref.nodes('./E:Employee') AS R2(nref2)
this is the sample query u could tryout from this query.
Abhijit - http://abhijitmore.wordpress.com