Section 8.1. Introduction

8.1. Introduction

XML is gaining more momentum as a universal language for communication between platforms; some people even call it the "new web revolution." XML is sometimes used as a database for storing documents, but data storage was never its primary purpose. It was developed to pass information from one system to another in a common format.

XML is a tagged language. The actual data is contained in structured, tagged elements of the document. The XML document must be parsed to extract the information. Often, the information needs to be converted into another format. In this chapter, we focus on using PHP to read and transform XML documents and to use XML as communication protocol with Remote Services. Providing all techniques for using XML is beyond the scope of this book.

After you finish reading this chapter, you will have learned

  • The structure of an XML document

  • The terminology needed to work with XML documents

  • How to parse an XML file using the two mainstream methods: SAX and DOM

  • How to parse a simple XML file an easier way: the PHP SimpleXML extension

  • How to use some useful PEAR packages for XML

  • How to convert an XML document into another format using XSLT

  • How to share information between systems using XML

    PHP 5 Power Programming
    PHP 5 Power Programming
    ISBN: 013147149X
    EAN: 2147483647
    Year: 2003
    Pages: 240

    Similar book on Amazon © 2008-2017.
    If you may any questions please contact us: