I'm trying to find an elegant way to generate an XML string that is used to request data from a data provider. The site I'm building has several search boxes that take in information required for different products,
For each of these products I have a xxx_search_model that handles the programming logic for doing this. At the moment I generate the XML files in each model in string form and manually insert the variables directly into the string.
Is it possible to have the XML files in a resources folder, load them in and parse through the file inserting values? If so how would this be best done