title: How to specify ProductID Type in URL request in eBay Shopping API
body: <p>I am currently trying to make a url request to the ebay shopping api using parameters from a xml string.</p>
  
  <p>When it comes to making the url using properties from basic xml elements i have no problem specifying the url parameters by appending them using the &amp; symbol.</p>
  
  <p>For example: </p>
  
  <p>The following xml:</p>
  
  <pre><code> &lt;?xml version="1.0" encoding="utf-8"?&gt;
   &lt;FindProductsRequest xmlns="urn:ebay:apis:eBLBaseComponents"&gt;
   &lt;QueryKeywords&gt;Harry Potter&lt;/QueryKeywords&gt;
   &lt;MaxEntries&gt;2&lt;/MaxEntries&gt;
   &lt;AvailableItemsOnly&gt;true&lt;/AvailableItemsOnly&gt;
   &lt;/FindProductsRequest&gt;
  </code></pre>
  
  <p>Becomes this url request,I achieve this by simply specifying the &amp; symbol followed by the element name followed by the = sign and the value from the xml. This results in:</p>
  
  <pre><code>   http://open.api.ebay.com/shopping?
     QueryKeywords=harry%20potter&amp;
     AvailableItemsOnly=true&amp;
     MaxEntries=2**
  </code></pre>
  
  <p>However when the xml becomes more complicated such as when a xml element specifies a attribute such as the following xml element:</p>
  
  <pre><code> &lt;ProductID type="UPC"&gt;73292317238&lt;/ProductID&gt;
  </code></pre>
  
  <p>I can't figure out how to include the type attribute into the url.</p>
  
  <p>What I have tried:</p>
  
  <p>I have tried specifying the type attribute in the url like this</p>
  
  <pre><code> &amp;type=UPC
  </code></pre>
  
  <p>However ebays system does not pick up that the type attribute belongs to the ProductID element.</p>
  
  <p>I have also tried inserting the raw xml into the url, however that just messed up the whole request.</p>
  
  <p>In summary I am trying to figure out how to encode a xml element that contain a attribute as well as a value into a url parameter?</p>
  
  <p>If the question is not clear please specify which part to fix up. I have tried following the ask a good question guide and will be happy to fix up any parts that require improvement.</p>