below is the configuration file of sample provided. note flexibility in defining properties and pricing.
-- o --
<shop id="karpuz">
<!-- all name's are for displaying, id's are unique (in their context) program identifiers -->
<category id="bike" name="bike">
<description>flying on the ground</description>
<item id="r1100s" name="r 1100 s" >
<description>one day i'll have for sure</description>
<property id="color" name="color">
<value id="yellow" name="yellow" />
<value id="blue-white" name="blue-white" />
</property>
<price value="1014"/>
</item>
<item id="f650st" name="f 650 st" >
<description>mine, not bad. i like her really</description>
<property id="color" name="color">
<value id="blue" name="night-blue" />
<value id="yellow" name="yellow" />
<value id="black" name="black" />
<value id="red" name="red" />
</property>
<price value="999"/>
</item>
</category>
<category id="woman" name="woman">
<description>who doesnt like beatiful women ? yeap wright, other woman..</description>
<item id="angelina" name="angelina jolie" >
<description>angelina jolie is great</description>
<property id="picture" name="/images/angelina.gif"/>
<property id="hair" name="hair">
<value id="blonde" name="blonde" />
<value id="red" name="red" />
</property>
<property id="time" name="time" priceProperty="true">
<value id="hour" name="one hour" />
<value id="night" name="one night" />
<value id="day" name="one day" />
<value id="week" name="one week" />
</property>
<price value="6914">
<property id="time" value="hour" />
</price>
<price value="3107">
<property id="time" value="night" />
</price>
<price value="8227">
<property id="time" value="day" />
</price>
<price value="11223">
<property id="time" value="week" />
</price>
</item>
<item id="nicole" name="nicole kidman" >
<description>yalarim</description>
<property id="picture" name="/images/nicole.gif"/>
<property id="hair" name="hair">
<value id="blonde" name="blonde" />
<value id="red" name="red" />
</property>
<property id="time" name="time" priceProperty="true">
<value id="hour" name="one hour" />
<value id="night" name="one night" />
<value id="day" name="one day" />
<value id="week" name="one week" />
</property>
<price value="7007">
<property id="time" value="hour" />
</price>
<price value="6661">
<property id="time" value="night" />
</price>
<price value="30210">
<property id="time" value="day" />
</price>
<price value="99919">
<property id="time" value="week" />
</price>
</item>
</category>
<category id="drug" name="drug">
<description>doors of perception</description>
<item id="marihuna" name="marihuna" >
<description>better than nicotine</description>
<property id="size" name="size" priceProperty="true">
<value id="joint" name="rolled joint" />
<value id="plate" name="plate" />
</property>
<property id="type" name="type" priceProperty="true">
<value id="turkish" name="turkish" />
<value id="afgan" name="afgan" />
</property>
<price value="7">
<property id="size" value="joint" />
<property id="type" value="turkish" />
</price>
<price value="14">
<property id="size" value="joint" />
<property id="type" value="afgan" />
</price>
<price value="666">
<property id="size" value="plate" />
<property id="type" value="turkish" />
</price>
<price value="999">
<property id="size" value="plate" />
<property id="type" value="afgan" />
</price>
</item>
</category>
</shop>
|