You are previewing XML Parsing with PHP.
O'Reilly logo
XML Parsing with PHP

Book Description

A comprehensive survey for working with XML in PHP that covers parsing & validating XML documents, using XPath expressions, XML namespaces, and workiung with XML programmatically.

Table of Contents

  1. Introduction
    1. Why XML?
    2. XML Terminology
    3. XML Namespaces
    4. The Old Way: DOMXML
    5. The PHP5 Way(s)
    6. The Road Ahead
  2. Introduction to XPath
    1. What is XPath?
    2. Summary
  3. Basic SimpleXML
    1. Parsing with SimpleXML
    2. Creating with SimpleXML
    3. Returning to XML
    4. The Road Ahead
  4. Advanced SimpleXML
    1. Namespaces in SimpleXML
    2. Loading from DOM
    3. The Road Ahead
  5. Basic DOM
    1. Parsing with DOM
    2. Creating with DOM
    3. Editing with DOM
    4. Returning to XML
    5. The Road Ahead
  6. Advanced DOM
    1. What This Chapter is Not
    2. XPath
    3. Namespaces in DOM
    4. CDATA
    5. Comments
    6. Moving Data
    7. Removing Data
    8. Normalizing
    9. Loading from SimpleXML
    10. The Road Ahead
  7. Basic XMLReader & XMLWriter
    1. How It Compares
    2. XMLReader Workflow
    3. XMLWriter Workflow
    4. The Road Ahead
  8. Advanced XMLReader and XMLWriter
    1. Namespaces in XMLReader
    2. Parser Properties
    3. XMLReader to DOM
    4. Namespaces in XMLWriter
    5. CDATA and Comments
    6. Processing Instructions
    7. Raw Text
    8. The Road Ahead
  9. XML in the Wild
    1. Adobe Flex
    2. RSS/Atom Syndication
    3. SOAP and WSDL
    4. REST
    5. XHTML
    6. Creating an RSS Feed
    7. Turning a Database Resultset into XML
    8. Which is Better?
    9. The Road Ahead
  10. Validation
    1. Document Type Definitions
    2. XML Schema
    3. RelaxNG
    4. End of the Road
  11. Appendix A: SimpleXML Function Reference
    1. SimpleXMLElement Methods
    2. Procedural Functions
  12. Appendix B: DOM Function Reference
    1. DOMAttr Class
    2. DOMCdataSection Class
    3. DOMCharacterData Class
    4. DOMComment Class
    5. DOMDocument Class
    6. DOMDocumentFragment Class
    7. DOMDocumentType Class
    8. DOMElement Class
    9. DOMEntity Class
    10. DOMEntityReference Class
    11. DOMException Class
    12. DOMImplementation Class
    13. DOMNamedNodeMap Class
    14. DOMNode Class
    15. DOMNodeList Class
    16. DOMNotation Class
    17. DOMProcessingInstruction Class
    18. DOMText Class
    19. DOMXPath Class
  13. Appendix C: XMLReader/XMLWriter Reference
    1. XMLReader Class
    2. XMLWriter Class
  14. Appendix D: library.xml
  15. Appendix E: FlexDoc.xml
  16. Appendix F: Libxml Constants
  17. Credits