Quelqu'un pourrait-il me dire comment extraire l'élément Errors du XML ci-dessous en utilisant XPath et C# sous .NET 3.5 Framework?Extraire l'élément du document XML
<?xml version='1.0' encoding='UTF-8'?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<SOAP-ENV:Body>
<ns1:do_OTA_VehAvailRateRQResponse xmlns:ns1="urn:vanguard-web-webservices-ota-IOTA" SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<return xsi:type="xsd:string"><OTA_VehAvailRateRS TimeStamp="2013-04-03T18:16:00" TransactionIdentifier="215997103" SequenceNmbr="1" Target="Production" Version="2.0" xmlns="http://www.opentravel.org/OTA/2003/05">
<Errors>
<Error Type="1" Code="999">COMPANY NAME FIELD IS INVALID</Error>
</Errors>
</OTA_VehAvailRateRS>
</return>
</ns1:do_OTA_VehAvailRateRQResponse>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
Pouvez-vous clarifier le problème que vous avez? Avec la quantité de code que vous avez posté jusqu'à présent, il est très difficile de voir quelle partie vous avez un problème. –
Comment ces terribles questions peuvent-elles être revues à la hausse? Ne tenons-nous pas compte de la F.A.Q. à présent? –
Downvoted la question. Les gens qui ne publient pas leur code défectueux ne méritent certainement pas un upvote. –