title: ColdFusion XmlSearch(): XPath with namespaces
body: <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"&gt;&lt;env:Header xmlns:env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"/&gt;&lt;soapenv:Body&gt;&lt;v9:ProcessShipmentReply xmlns:v9="http://fedex.com/ws/ship/v9"&gt;&lt;v9:HighestSeverity xmlns:env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"&gt;SUCCESS&lt;/v9:HighestSeverity&gt;&lt;v9:Notifications xmlns:env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"&gt;&lt;v9:Severity&gt;SUCCESS&lt;/v9:Severity&gt;&lt;v9:Source&gt;ship&lt;/v9:Source&gt;&lt;v9:Code&gt;0000&lt;/v9:Code&gt;&lt;v9:Message&gt;Success&lt;/v9:Message&gt;&lt;v9:LocalizedMessage&gt;Success&lt;/v9:LocalizedMessage&gt;&lt;/v9:Notifications&gt;&lt;v9:Version&gt;
                              &lt;v9:ServiceId&gt;ship&lt;/v9:ServiceId&gt;
                              &lt;v9:Major&gt;9&lt;/v9:Major&gt;
  
                              &lt;v9:Intermediate&gt;0&lt;/v9:Intermediate&gt;
                              &lt;v9:Minor&gt;0&lt;/v9:Minor&gt;
                           &lt;/v9:Version&gt;&lt;v9:CompletedShipmentDetail&gt;&lt;v9:UsDomestic xmlns:env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"&gt;false&lt;/v9:UsDomestic&gt;&lt;v9:CarrierCode xmlns:env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"&gt;FDXE&lt;/v9:CarrierCode&gt;&lt;v9:ServiceTypeDescription xmlns:env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"&gt;INTL PRIORITY&lt;/v9:ServiceTypeDescription&gt;&lt;v9:PackagingDescription xmlns:env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"&gt;YOUR_PACKAGING&lt;/v9:PackagingDescription&gt;&lt;v9:RoutingDetail xmlns:env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"&gt;&lt;v9:UrsaPrefixCode&gt;9F&lt;/v9:UrsaPrefixCode&gt;&lt;v9:UrsaSuffixCode&gt;QNJA &lt;/v9:UrsaSuffixCode&gt;&lt;v9:OriginLocationId&gt;QVAA &lt;/v9:OriginLocationId&gt;&lt;v9:OriginServiceArea&gt;AM&lt;/v9:OriginServiceArea&gt;&lt;v9:DestinationLocationId&gt;QNJA &lt;/v9:DestinationLocationId&gt;&lt;v9:DestinationServiceArea&gt;PM&lt;/v9:DestinationServiceArea&gt;&lt;v9:DestinationLocationStateOrProvinceCode&gt;  &lt;/v9:DestinationLocationStateOrProvinceCode&gt;&lt;v9:AstraPlannedServiceLevel&gt;PM&lt;/v9:AstraPlannedServiceLevel&gt;&lt;v9:AstraDescription&gt;INTL PRIORITY&lt;/v9:AstraDescription&gt;&lt;v9:PostalCode&gt;74940&lt;/v9:PostalCode&gt;&lt;v9:StateOrProvinceCode&gt;  &lt;/v9:StateOrProvinceCode&gt;&lt;v9:CountryCode&gt;FR&lt;/v9:CountryCode&gt;&lt;v9:AirportId&gt;CDG&lt;/v9:AirportId&gt;&lt;/v9:RoutingDetail&gt;&lt;v9:ShipmentRating xmlns:env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"&gt;&lt;v9:ActualRateType&gt;PAYOR_ACCOUNT_SHIPMENT&lt;/v9:ActualRateType&gt;&lt;v9:ShipmentRateDetails&gt;&lt;v9:RateType&gt;PAYOR_ACCOUNT_SHIPMENT&lt;/v9:RateType&gt;&lt;v9:RateScale&gt;0000000&lt;/v9:RateScale&gt;&lt;v9:RateZone&gt;IT001O&lt;/v9:RateZone&gt;&lt;v9:PricingCode&gt;ACTUAL&lt;/v9:PricingCode&gt;&lt;v9:RatedWeightMethod&gt;ACTUAL&lt;/v9:RatedWeightMethod&gt;&lt;v9:CurrencyExchangeRate&gt;&lt;v9:FromCurrency&gt;EUR&lt;/v9:FromCurrency&gt;&lt;v9:IntoCurrency&gt;USD&lt;/v9:IntoCurrency&gt;&lt;v9:Rate&gt;1.37&lt;/v9:Rate&gt;&lt;/v9:CurrencyExchangeRate&gt;&lt;v9:DimDivisor&gt;0&lt;/v9:DimDivisor&gt;&lt;v9:FuelSurchargePercent&gt;12.5&lt;/v9:FuelSurchargePercent&gt;&lt;v9:TotalBillingWeight&gt;&lt;v9:Units&gt;KG&lt;/v9:Units&gt;&lt;v9:Value&gt;6.0&lt;/v9:Value&gt;&lt;/v9:TotalBillingWeight&gt;&lt;v9:TotalBaseCharge&gt;&lt;v9:Currency&gt;USD&lt;/v9:Currency&gt;&lt;v9:Amount&gt;142.27&lt;/v9:Amount&gt;&lt;/v9:TotalBaseCharge&gt;&lt;v9:TotalFreightDiscounts&gt;&lt;v9:Currency&gt;USD&lt;/v9:Currency&gt;&lt;v9:Amount&gt;0.0&lt;/v9:Amount&gt;&lt;/v9:TotalFreightDiscounts&gt;&lt;v9:TotalNetFreight&gt;&lt;v9:Currency&gt;USD&lt;/v9:Currency&gt;&lt;v9:Amount&gt;142.27&lt;/v9:Amount&gt;&lt;/v9:TotalNetFreight&gt;&lt;v9:TotalSurcharges&gt;&lt;v9:Currency&gt;USD&lt;/v9:Currency&gt;&lt;v9:Amount&gt;17.78&lt;/v9:Amount&gt;&lt;/v9:TotalSurcharges&gt;&lt;v9:TotalNetFedExCharge&gt;&lt;v9:Currency&gt;USD&lt;/v9:Currency&gt;&lt;v9:Amount&gt;160.05&lt;/v9:Amount&gt;&lt;/v9:TotalNetFedExCharge&gt;&lt;v9:TotalTaxes&gt;&lt;v9:Currency&gt;USD&lt;/v9:Currency&gt;&lt;v9:Amount&gt;0.0&lt;/v9:Amount&gt;&lt;/v9:TotalTaxes&gt;&lt;v9:TotalNetCharge&gt;&lt;v9:Currency&gt;USD&lt;/v9:Currency&gt;&lt;v9:Amount&gt;160.05&lt;/v9:Amount&gt;&lt;/v9:TotalNetCharge&gt;&lt;v9:TotalRebates&gt;&lt;v9:Currency&gt;USD&lt;/v9:Currency&gt;&lt;v9:Amount&gt;0.0&lt;/v9:Amount&gt;&lt;/v9:TotalRebates&gt;&lt;v9:Surcharges&gt;&lt;v9:SurchargeType&gt;FUEL&lt;/v9:SurchargeType&gt;&lt;v9:Description&gt;Fuel&lt;/v9:Description&gt;&lt;v9:Amount&gt;&lt;v9:Currency&gt;USD&lt;/v9:Currency&gt;&lt;v9:Amount&gt;17.78&lt;/v9:Amount&gt;&lt;/v9:Amount&gt;&lt;/v9:Surcharges&gt;&lt;/v9:ShipmentRateDetails&gt;&lt;v9:ShipmentRateDetails&gt;&lt;v9:RateType&gt;RATED_ACCOUNT_SHIPMENT&lt;/v9:RateType&gt;&lt;v9:RateScale&gt;0000000&lt;/v9:RateScale&gt;&lt;v9:RateZone&gt;IT001O&lt;/v9:RateZone&gt;&lt;v9:PricingCode&gt;ACTUAL&lt;/v9:PricingCode&gt;&lt;v9:RatedWeightMethod&gt;ACTUAL&lt;/v9:RatedWeightMethod&gt;&lt;v9:CurrencyExchangeRate&gt;&lt;v9:FromCurrency&gt;EUR&lt;/v9:FromCurrency&gt;&lt;v9:IntoCurrency&gt;EUR&lt;/v9:IntoCurrency&gt;&lt;v9:Rate&gt;1.0&lt;/v9:Rate&gt;&lt;/v9:CurrencyExchangeRate&gt;&lt;v9:DimDivisor&gt;0&lt;/v9:DimDivisor&gt;&lt;v9:FuelSurchargePercent&gt;12.5&lt;/v9:FuelSurchargePercent&gt;&lt;v9:TotalBillingWeight&gt;&lt;v9:Units&gt;KG&lt;/v9:Units&gt;&lt;v9:Value&gt;6.0&lt;/v9:Value&gt;&lt;/v9:TotalBillingWeight&gt;&lt;v9:TotalBaseCharge&gt;&lt;v9:Currency&gt;EUR&lt;/v9:Currency&gt;&lt;v9:Amount&gt;103.6&lt;/v9:Amount&gt;&lt;/v9:TotalBaseCharge&gt;&lt;v9:TotalFreightDiscounts&gt;&lt;v9:Currency&gt;EUR&lt;/v9:Currency&gt;&lt;v9:Amount&gt;0.0&lt;/v9:Amount&gt;&lt;/v9:TotalFreightDiscounts&gt;&lt;v9:TotalNetFreight&gt;&lt;v9:Currency&gt;EUR&lt;/v9:Currency&gt;&lt;v9:Amount&gt;103.6&lt;/v9:Amount&gt;&lt;/v9:TotalNetFreight&gt;&lt;v9:TotalSurcharges&gt;&lt;v9:Currency&gt;EUR&lt;/v9:Currency&gt;&lt;v9:Amount&gt;12.95&lt;/v9:Amount&gt;&lt;/v9:TotalSurcharges&gt;&lt;v9:TotalNetFedExCharge&gt;&lt;v9:Currency&gt;EUR&lt;/v9:Currency&gt;&lt;v9:Amount&gt;116.55&lt;/v9:Amount&gt;&lt;/v9:TotalNetFedExCharge&gt;&lt;v9:TotalTaxes&gt;&lt;v9:Currency&gt;EUR&lt;/v9:Currency&gt;&lt;v9:Amount&gt;0.0&lt;/v9:Amount&gt;&lt;/v9:TotalTaxes&gt;&lt;v9:TotalNetCharge&gt;&lt;v9:Currency&gt;EUR&lt;/v9:Currency&gt;&lt;v9:Amount&gt;116.55&lt;/v9:Amount&gt;&lt;/v9:TotalNetCharge&gt;&lt;v9:TotalRebates&gt;&lt;v9:Currency&gt;EUR&lt;/v9:Currency&gt;&lt;v9:Amount&gt;0.0&lt;/v9:Amount&gt;&lt;/v9:TotalRebates&gt;&lt;v9:Surcharges&gt;&lt;v9:SurchargeType&gt;FUEL&lt;/v9:SurchargeType&gt;&lt;v9:Description&gt;Fuel&lt;/v9:Description&gt;&lt;v9:Amount&gt;&lt;v9:Currency&gt;EUR&lt;/v9:Currency&gt;&lt;v9:Amount&gt;12.95&lt;/v9:Amount&gt;&lt;/v9:Amount&gt;&lt;/v9:Surcharges&gt;&lt;/v9:ShipmentRateDetails&gt;&lt;/v9:ShipmentRating&gt;&lt;v9:IneligibleForMoneyBackGuarantee xmlns:env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"&gt;false&lt;/v9:IneligibleForMoneyBackGuarantee&gt;&lt;v9:CompletedPackageDetails xmlns:env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"&gt;&lt;v9:SequenceNumber&gt;1&lt;/v9:SequenceNumber&gt;&lt;v9:TrackingIds&gt;&lt;v9:TrackingIdType&gt;EXPRESS&lt;/v9:TrackingIdType&gt;&lt;v9:FormId&gt;0430&lt;/v9:FormId&gt;&lt;v9:TrackingNumber&gt;794794712260&lt;/v9:TrackingNumber&gt;&lt;/v9:TrackingIds&gt;&lt;v9:GroupNumber&gt;0&lt;/v9:GroupNumber&gt;&lt;v9:Barcodes&gt;&lt;v9:BinaryBarcodes&gt;&lt;v9:Type&gt;COMMON_2D&lt;/v9:Type&gt;&lt;v9:Value&gt;Wyk+HjAxHTAyNzQ5NDAdMjUwHTAxHTAwMDAwMDAwMDAwMDA0MzAdRkRFHTUxMDA4NzAyMB0wMjUdHTEvMR02LjBLRx1OHUxlIFBlcmNlIE5laWdlLCA0IENoZW1pbiBkZSBWZXJib3V4HUFubmVjeSBMZSBWaWV1eB1aWh1HcmFuZG91bGllciBNYXJpZS1MYXVyZR4wNh0xMFpFSUkwNh0xMVpTb2NpZXTDoCBEZXN0aW5hdGFyaW8dMTJaMDY3MTIzNzAyMR0zMVo0MDQ5NzE5OTExMDAwMDA0MDAwMDAwMDAwMDAwNDMwMB0zMlodMTRaKipURVNUIExBQkVMIC0gRE8gTk9UIFNISVAqKh0xNVoxMDAwOTE2NDQdMjhaHUtWYWx1ZSB0byBiZSBTaG93biBpbnRvIHRoZSBpbnYdOTlaRUkwMDA0HElUHDMzLjAcRVVSHENvbnRlbnQgZGVzY3JpcHRpb24gKE11c3QgYmUgcHJvdmlkZWQgaW4gRU5HTElTHBxZHDEwLjAcHTI2WjRmZmMcHR4E&lt;/v9:Value&gt;&lt;/v9:BinaryBarcodes&gt;&lt;v9:StringBarcodes&gt;&lt;v9:Type&gt;ASTRA&lt;/v9:Type&gt;&lt;v9:Value&gt;40497199110000047947947122604300&lt;/v9:Value&gt;&lt;/v9:StringBarcodes&gt;&lt;/v9:Barcodes&gt;&lt;v9:AstraLabelElements&gt;&lt;v9:Number&gt;2&lt;/v9:Number&gt;&lt;v9:Content&gt;TRK#&lt;/v9:Content&gt;&lt;/v9:AstraLabelElements&gt;&lt;v9:AstraLabelElements&gt;&lt;v9:Number&gt;3&lt;/v9:Number&gt;&lt;v9:Content&gt;0430&lt;/v9:Content&gt;&lt;/v9:AstraLabelElements&gt;&lt;v9:AstraLabelElements&gt;&lt;v9:Number&gt;5&lt;/v9:Number&gt;&lt;v9:Content&gt;9F QNJA &lt;/v9:Content&gt;&lt;/v9:AstraLabelElements&gt;&lt;v9:AstraLabelElements&gt;&lt;v9:Number&gt;7&lt;/v9:Number&gt;&lt;v9:Content&gt;40497199110000047947947122604300&lt;/v9:Content&gt;&lt;/v9:AstraLabelElements&gt;&lt;v9:AstraLabelElements&gt;&lt;v9:Number&gt;8&lt;/v9:Number&gt;&lt;v9:Content&gt;512G2/A78E/A278&lt;/v9:Content&gt;&lt;/v9:AstraLabelElements&gt;&lt;v9:AstraLabelElements&gt;&lt;v9:Number&gt;10&lt;/v9:Number&gt;&lt;v9:Content&gt;7947 9471 2260&lt;/v9:Content&gt;&lt;/v9:AstraLabelElements&gt;&lt;v9:AstraLabelElements&gt;&lt;v9:Number&gt;12&lt;/v9:Number&gt;&lt;v9:Content&gt;PM&lt;/v9:Content&gt;&lt;/v9:AstraLabelElements&gt;&lt;v9:AstraLabelElements&gt;&lt;v9:Number&gt;13&lt;/v9:Number&gt;&lt;v9:Content&gt;INTL PRIORITY&lt;/v9:Content&gt;&lt;/v9:AstraLabelElements&gt;&lt;v9:AstraLabelElements&gt;&lt;v9:Number&gt;15&lt;/v9:Number&gt;&lt;v9:Content&gt;74940&lt;/v9:Content&gt;&lt;/v9:AstraLabelElements&gt;&lt;v9:AstraLabelElements&gt;&lt;v9:Number&gt;16&lt;/v9:Number&gt;&lt;v9:Content&gt;  -FR&lt;/v9:Content&gt;&lt;/v9:AstraLabelElements&gt;&lt;v9:AstraLabelElements&gt;&lt;v9:Number&gt;17&lt;/v9:Number&gt;&lt;v9:Content&gt;CDG&lt;/v9:Content&gt;&lt;/v9:AstraLabelElements&gt;&lt;v9:Label&gt;&lt;v9:Type&gt;OUTBOUND_LABEL&lt;/v9:Type&gt;&lt;v9:ShippingDocumentDisposition&gt;RETURNED&lt;/v9:ShippingDocumentDisposition&gt;&lt;v9:Resolution&gt;200&lt;/v9:Resolution&gt;&lt;v9:CopiesToPrint&gt;1&lt;/v9:CopiesToPrint&gt;&lt;v9:Parts&gt;&lt;v9:DocumentPartSequenceNumber&gt;1&lt;/v9:DocumentPartSequenceNumber&gt;&lt;v9:Image&gt;HUGE STUFF!!!&lt;/v9:Image&gt;&lt;/v9:Parts&gt;&lt;/v9:Label&gt;&lt;v9:SignatureOption&gt;SERVICE_DEFAULT&lt;/v9:SignatureOption&gt;&lt;/v9:CompletedPackageDetails&gt;&lt;/v9:CompletedShipmentDetail&gt;&lt;/v9:ProcessShipmentReply&gt;&lt;/soapenv:Body&gt;&lt;/soapenv:Envelope&gt;
  </code></pre>
  
  <p>Here's my SOAP response, from my web service.</p>
  
  <p>I want to <strong>XmlSearch()</strong> to get the <code>&lt;v9:image&gt;</code> content. </p>
  
  <p>What's the right XPath? "//v9:image" nor "//image" do not work!</p>