title: How to use complex object elements in WSO2 DSS?
body: <p>I'm new to WSO2 Data Services Server and I trying to figure out how to get complex element types working correctly with the web scraper. Using the interface I seem to be able to define the object, but I'm not sure how to use it once it is defined. Below is the Data Service XML...</p>
  
  <pre><code>&lt;data name="ComplexTypeExample"&gt;
     &lt;description&gt;A Description&lt;/description&gt;
     &lt;config id="GetPrices"&gt;
        &lt;property name="web_harvest_config"&gt;./samples/resources/GetPrices.xml&lt;/property&gt;
     &lt;/config&gt;
     &lt;query id="getSonyPrices" useConfig="GetPrices"&gt;
        &lt;scraperVariable&gt;priceInfoSony&lt;/scraperVariable&gt;
        &lt;result element="CameraInfo" rowName="Record"&gt;
           &lt;element column="Pic" name="Pic" xsdType="string"/&gt;
           &lt;element column="Desc" name="Desc" xsdType="string"/&gt;
           &lt;element name="Inventory" namespace=""&gt;
              &lt;element name="Item" namespace=""&gt;
                 &lt;element column="Grade" name="Grade" xsdType="string"/&gt;
                 &lt;element column="Price" name="Price" xsdType="string"/&gt;
              &lt;/element&gt;
           &lt;/element&gt;
        &lt;/result&gt;
     &lt;/query&gt;
     &lt;operation name="getSonyPricesOperation"&gt;
        &lt;description&gt;Gets prices of KM/Sony cameras&lt;/description&gt;
        &lt;call-query href="getSonyPrices"/&gt;
     &lt;/operation&gt;
  &lt;/data&gt;
  </code></pre>
  
  <p>What I am trying to do is figure out how to get the Inventory element to be an array of Item types. Something like this...</p>
  
  <pre><code>   &lt;Record&gt;
       &lt;Pic&gt;Camera.jpg&lt;/Pic&gt;
       &lt;Desc&gt;A camera made by some company&lt;/Desc&gt;
       &lt;Inventory&gt;
          &lt;Item&gt;
              &lt;Grade&gt;Good&lt;/Grade&gt;
              &lt;Price&gt;$200&lt;/Price&gt;
          &lt;/Item&gt;
          &lt;Item&gt;
              &lt;Grade&gt;Not So Good&lt;/Grade&gt;
              &lt;Price&gt;$100&lt;/Price&gt;
          &lt;/Item&gt;
          &lt;Item&gt;
              &lt;Grade&gt;Broken&lt;/Grade&gt;
              &lt;Price&gt;$10&lt;/Price&gt;
          &lt;/Item&gt;
       &lt;/Inventory&gt;
     &lt;/Record&gt;
  </code></pre>
  
  <p>Can anyone provide some hints as to where I'm going wrong?</p>