0

can anyone explain me how to create xml file from database using codeigniter.

I like to create simple xml file dynamically...

2 Answers 2

1

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.

Sign up to request clarification or add additional context in comments.

Comments

0

check this CI database utility class will help you to generate xml

Database Utility Class

2 Comments

Yes i did same..but i wanted to know how can i generate xml file without creating file on system, i just want to create xml from db and than parse it///
for this just do $data = $this->dbutil->xml_from_result($query, $config); it will return xml data only and you can parse that data

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.