Iterating through elements of a xml not working

So I have a xml that goes like I posted it on the bottom, Im trying to go through every element “Analytic” and put the SynthCode attribute on an array, I did as this guy said - YouTube just to make sure im able to pull the synthcode attribute. My item in the cycle equals XDocument.Descendants(“Analytic”) and in the message box I tried both item.Element(“Synthcode”).value.toString and Attribute instead of element, it says option strict on disallows late binding. When I write item. I dont even get the full recommendations of an XElement object like I show on the image below, like it doesnt recognise it as it it. But if I print item.getType.toString it says it is an XElement.

-<AccountingTransactionFile
+<FileHeader
-<AccountingTransactionList
-<Analytic<
GroupRefN>xxxxxxxxxx</GroupRefN
SynthRefN>xxxxxxxxx</SynthRefN
SynthCode>YYYYY</SynthCode
</Analytic