I have an application where I want to list all the products that matches requested filter category. I can send all the filters from c# code via XML file. my XML file would look like...
<filter CategoryId="" ForHomepage="" StartingIndex="">
<brand>
<id></id>
<id></id>
</brand>
<os>
<id></id>
<id></id>
</os>
<touch value="" />
<display>
<id></id>
<id></id>
</display>
<ram>
<id></id>
<id></id>
</ram>
<storage>
<id></id>
<id></id>
</storage>
<camera>
<id></id>
<id></id>
</camera>
<battery>
<id></id>
<id></id>
</battery>
</filter>
I can read the XML and store the data in temp table but I want to read categoryid, touch, forhomepage and startingindex fields in variables declared in sp (an not in table because this is non repetitive data).
Can anyone have such issues in past? To store the XML data in declared variables.
Taken from OP's comment:
<filter CategoryId="12" ForHomepage="true" StartingIndex="0">
<brand>
<id>1001</id>
<id>1006</id>
</brand>
<os>
<id>7005</id>
<id>7009</id>
</os>
<touch value="true" />
<display>
<id>3002</id>
<id>3005</id>
</display>
<ram>
<id>2006</id>
<id>2009</id>
</ram>
<storage>
<id>4006</id>
</storage>
<camera>
<id>9009</id>
<id>9014</id>
</camera>
<battery>
<id>1501</id>
<id>1581</id>
</battery>
</filter>