Hi, I have part of an application where a template is stored in a database, within this template can be searched and replaced variables. These variables need to have a default value stored against them, so in the table there is a field that stores the defaults for these variables. On an update the text is parsed and the XML updated to reflect these changes. Currently, as the end user is responsible for the updating, the variable name is stored in a name attribute of the variable node. When outputting the variables in a form to take the default variable, they are listed in the order they were found in the document. My question is, is it possible to sort the XML so that when looping over the children by the name attribute?
I am currently happy outputting the form in the order they appear, however I am anticipating my manager/client requiring the order by in Alphabetical format Regards Jedi ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Find out how CFTicket can increase your company's customer support efficiency by 100% http://www.houseoffusion.com/banners/view.cfm?bannerid=49 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:211613 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

