Почему выдается ошибка исключения?
[XML DATA]
<?xml version="1.0" standalone="yes"?>
<sdnList xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://tempuri.org/sdnList.xsd">
<publshInformation>
<Publish_Date>05/23/2019</Publish_Date>
<Record_Count>7656</Record_Count>
</publshInformation>
</sdnList>
[C # - XML to linq]
var xmlTree = XDocument.Parse(xmlData);
var publish = from item in xmlTree.Descendants("publshInformation")
select new
{
Date = (string)item.Element("Publish_Date"),
TotalRecords = (string)item.Element("Record_Count")
};
var date = publish.FirstOrDefault().Date;
var totalRecords = publish.FirstOrDefault().TotalRecords;