Chapter 3. Using the XML Extension

In This Chapter

  • Introducing the Document Object Model (DOM)

  • Validating data by using XML Schema

  • Changing a document's type by using XSLT

  • Using XPath to search XML documents

XML is the Swiss Army Knife of data storage and manipulation tools. It's small, portable, and can do just about anything you need it to (except open a can of beans).

This chapter guides you through the details of using PHP to manipulate XML documents, starting with the Document Object Model (DOM for short). From there, we cover three of the most prominent XML technologies: XML Schema, XSLT, and XPath.

Get PHP & MySQL® Web Development All-in-One Desk Reference for Dummies® 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.