public static void Main()
<createTransactionResponse xmlns=""AnetApi/xml/v1/schema/AnetApiSchema.xsd"" xmlns:xsd=""http://www.w3.org/2001/XMLSchema"" xmlns:xsi=""http://www.w3.org/2001/XMLSchema-instance"">
<resultCode>Ok</resultCode>
<responseCode>1</responseCode>
<authCode>25C10X</authCode>
<description>This transaction has been approved.</description>
</createTransactionResponse>";
XNamespace ns = "AnetApi/xml/v1/schema/AnetApiSchema.xsd";
var root = XElement.Parse(xml);
var text = (string) root.Elements(ns + "messages")
.Descendants(ns + "text")