public static void Main()
const string xml = @"<soap:Envelope xmlns:soap=""http://schemas.xmlsoap.org/soap/envelope/"">
<GetOrderResponseRequest xmlns=""http://www.edibulb.nl/XML/Order:2"">
<UserName xmlns=""urn:ebl:edibulb:xml:data:draft:ReusableAggregateBusinessInformationEntity:2"">FBT_000390</UserName>
<Password xmlns=""urn:ebl:edibulb:xml:data:draft:ReusableAggregateBusinessInformationEntity:2"">1FWcgwrx9</Password>
<MessageID xmlns=""urn:ebl:edibulb:xml:data:draft:ReusableAggregateBusinessInformationEntity:2"" schemeDataURI=""8719604082016"">8719604082016100376</MessageID>
<MessageDateTime xmlns=""urn:ebl:edibulb:xml:data:draft:ReusableAggregateBusinessInformationEntity:2"" format=""304"">20170523090413+02:00</MessageDateTime>
<PrimaryID xmlns=""urn:ebl:edibulb:xml:data:draft:ReusableAggregateBusinessInformationEntity:2"" schemeID=""251"" schemeAgencyName=""EBC"">8719604178115</PrimaryID>
<GetOrderResponseDetails>
<MutationDateTime xmlns=""urn:ebl:edibulb:xml:data:draft:ReusableAggregateBusinessInformationEntity:2"" format=""304"">20170510000000+02:00</MutationDateTime>
<BuyerParty xmlns=""urn:ebl:edibulb:xml:data:draft:ReusableAggregateBusinessInformationEntity:2"">
<PrimaryID xmlns=""urn:un:unece:uncefact:data:standard:ReusableAggregateBusinessInformationEntity:3"" schemeID=""251"" schemeAgencyName=""EBC"">8719604082016</PrimaryID>
</GetOrderResponseDetails>
</GetOrderResponseRequest>
var doc = XDocument.Parse(xml);
.Where(x => x.IsNamespaceDeclaration)
foreach (var element in doc.Descendants())
element.Name = element.Name.LocalName;