WebReference.com - Chapter 10 of Professional PHP4 XML, from Wrox Press Ltd
Professional PHP4 XML
Chapter 10: Putting It Together*
[The series of excerpts below are from Chapter 10 of the Wrox Press Ltd. title Professional PHP4 XML. Source code for the examples discussed can be downloaded at the Wrox Web site (free e-mail registration required).]
In the preceding chapters we have taken a detailed look at XML, SAX, DOM, XPath, and XSL. We have also looked at some XML technologies--XHTML, WML, SVG, VXML, RSS, RDF, XML-RPC, and SOAP. Finally, we looked at four XML classes that share one major common feature--they allow us to interact with an XML document.
XML is used for:
- Storing data--XML documents
- Describing data--RDF, RSS
- Querying and Parsing--DOM, SAX, XSLT
- Presentation--XHTML, WML, SVG, VXML
- Services--XML-RPC, SOAP
Finding the right mix of XML to use in a project is sometimes a challenging task. This chapter does just that, it describes how to put these different technologies to work.
Here's is a brief summary of what we have learned so far:
- The basics of XML
- What is SAX and when and how to use it
- What is DOM and when and how to use it
- What is XPath and when and how to use it
- What XSLT is and when and how to use it
In this chapter we'll be putting what we've learned in the previous chapters into practice to see different solutions to the same problem using different technologies. By the end of this chapter we'll have learned:
- How to abstract different XML processing problems
- How to transform XML documents using XSLT or SAX
- A way to implement SAX filters, and examples of SAX filter chains
- What can be done to speed up XSLT transformations
- How to modify XML documents using DOM
- How to modify XML documents using SAX filters
- How to modify XML documents using XSLT
- How to transform XML data into PHP objects
- How to write XML data from non-XML data using DOM
- How to write a SAX parser for non-XML data
Excerpt Contents
- Programming XML Applications / Transforming XML
- Modifying XML
- Creating Objects from XML Files / Querying XML
- Writing XML / Summary
# # #
Created: August 12, 2002
Revised: September 3, 2002
URL: https://webreference.com/programming/php/php4xml/chap10/