O'Reilly logo

Object-Oriented Programming with PHP5 by Hasin Hayder

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 8. Cooking XML with OOP

XML (Extensible Markup Language) is a very important format for storing multi‑purpose data. It is also known as universal data format, as you can represent anything and visualize the data properly with the help of a renderer. One of the biggest advantages of XML is that it can be converted from one form of data into another easily with the help of XSLT. Also, XML data is highly readable.

One of the great blessings of PHP5 is its excellent support to manipulate XML. PHP5 comes bundled with new XML extensions for processing XML easily. You have a whole new SimpleXML API to read XML documents in a pure object-oriented way. Also, you have the DOMDocument object to parse and create XML documents. In this chapter we ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required