I want to check if an XElement object contains a specific attribute as some lines of the XML file have different attributes. But XElement does not have a HasAttribute(
HasAttribute(