This chapter introduces you to working with XML documents via PHP, but in no way is it comprehensive—entire books have been written on this topic alone because there are several methods for accessing XML data using PHP functions. However, for people new to XML, or new to XML manipulation via PHP, some sets of functions are more manageable than others—this chapter introduces you to two of them.
In this chapter you will learn
How to create a basic XML document structure
How to access XML in PHP using DOM functions
How to access XML in PHP using SimpleXML functions
The name XML comes from the full name of the language, Extensible Markup Language. Although markup is in the name of the language, do not think of XML ...