can anyone explain me how to create xml file from database using codeigniter.
I like to create simple xml file dynamically...
Take a look into the Databse utils class, it has a xml_from_result method that will try to generate xml from any database result objects.
check this CI database utility class will help you to generate xml