I've run into a problem trying to search an XML document with a
namespace. Sample extract is below:
<Vendors xmlns="http://tempuri.org/Vendor.xsd">
<Vendor>
<VendorID>002010</VendorID>
<PropricerId>002010S</PropricerId>
<VendorName>AEROTEK, INC.</VendorName>
</Vendor>
<Vendor>
<VendorID>002012</VendorID>
<PropricerId>002012S</PropricerId>
<VendorName>ARONSON & COMPANY</VendorName>
</Vendor>
<Vendor>
<VendorID>002018</VendorID>
<PropricerId>002018S</PropricerId>
<VendorName>ASSOCIATED SPRING RAYMOND</VendorName>
</Vendor>
I'm trying to get a VendorName based on a vendor ID. I'm using
Microsoft .Net framework XML parser.
I've tried numerous variations on the following:
..SelectSingleNode("//default:Vendor/default:VendorName[VendorID='008300'],
<<Variable indicating namespace>>)
TIA,
Michael Schnell