Chapter 28. Working with XML
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
What Is XML?
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 ...
Get Sams Teach Yourself PHP, MySQL and Apache All in One, Fourth Edition 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.