0

I'm learning the Zend Framework. So please excuse me if this question is basic.

I want to write a small app driven by a xml api. The xml returned is below.

What the best way to parse this xml file? What a good design pattern should I use? Should I store it in the model?

3 Answers 3

1

I ended up extending the Zend_Rest_Client Class.

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

Comments

0

I'm assuming you want to make into PHP variables for easy use with the DB?

Comments

0

You can parse the xml file Zend_Config_Xml.
Zend Config Adapter

And for storing this data i would recommend to use the xml structure. It will give more flexibility to the app later on.

1 Comment

I wouldn't recommend this - Zend_Config is for config files and the XML given does not look like one. Just use the standard simplexml functions directly.

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.