I have finally written code to fetch the data using XML configuration.
<Properties>
<NodeName>prop<NodeName>
</Properties>
So now I will read this configuration and fetch the data from XML using the node name from Configuration.By This way I can dynamically process my data.
Thanks