Okay. Let me list what exactly I need:
1. I have to define a config xml file
2. XML file should contain two different types of Parameters
a. Special type b. Default type
And each parameter under these types can have more than one instances which needs be differentiated by adding an attribute called "instance" in the node "parameter".
3. Later I need to read this config xml, and should extract first parameters under default type, instance wise and get the value for each parameter via a hash or array.
4. Same as above for special type of parameters as well.
<?xml version="1.0" encoding="UTF-8"?>
<list>
<feature category="defaultlist">
<parameter instance="0">sampleparameter</parameter>
<value>1</value>
<parameter instance="0">firstparameter</parameter>
<value>1</value>
<parameter instance="1">firstparameter</parameter>
<value>1</value>
</feature>
<feature category="speciallist">
<parameter instance="0">splparameter</parameter>
<value>1</value>
</feature>
</list>
|