Practical PHP Programming:XML and XSLT
From IpbWiki
We all know that XML has great advantages going for it - it is human-readable, cross-platform, and easily converted into other forms. However, we all also know that it is not the fastest kid on the block when put up against binary formats.
So, how does a web developer harness the power of XML, whilst retaining as much performance as possible? Simple - use PHP's exceptionally fast XML module!
This chapter will teach XML parsing and manipulation using PHP, and requires that you are familiar with PHP as a language. Some familiarity with XML is required, although XML syntax and grammar is not mentioned in detail - the focus is PHP.
Topics covered in this chapter are:
- Standard XML manipulation
- "SimpleXML" – the fast and easy way to use XML
- XSL and transforming XML
Chapter contents
- 11.1. Practical_PHP_Programming:Introduction to XML
- 11.2. Practical_PHP_Programming:Event-based XML parsing
- 11.2.1. Practical_PHP_Programming:Creating a parser
- 11.2.2. Practical_PHP_Programming:Getting to know the XML callback functions
- 11.2.3. Practical_PHP_Programming:Implementing XML callback functions
- 11.2.4. Practical_PHP_Programming:Event-based XML parsing, at last!
- 11.2.5. Practical_PHP_Programming:Finishing off with event-based XML parsing
- 11.3. Practical_PHP_Programming:Introduction to SimpleXML
- 11.4. Practical_PHP_Programming:Transforming XML with XSLT
