Summary

This chapter took an in-depth look at the relationship between PHP, XML, and databases, and demonstrated how to encode database records as XML, and vice-versa. In an attempt to assist developers in choosing the appropriate technology for their specific requirements, it first evaluated the pros and cons of each approach, examining the two technologies vis-à-vis each other. Then, forsaking theory for in-depth, practical examples, it built on your knowledge of SAX, XSLT, and the DOM to illustrate how painless the conversion process is, and how many different ways there are to accomplish it.

And speaking of choice, you’ll be interested to hear that the next chapter offers you even more of it, exploring some of the alternatives available ...

Get XML and PHP now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.