CHAPTER 8 – XML with PHP 5 – PEAR

In some cases, none of the previous techniques may be appropriate. For exam- ple, the DOM XML extension might not be available, or you might want to parse something very specific and don't want to build a parser yourself. PEAR contains classes that deal with parsing XML, which might be useful. We'll cover two of them: XML_Tree and XML_RSS. XML_Tree is useful for building XML documents through a tree when the DOM XML extension is not available or when you want to build a document fast without too many features. XML_RSS can parse RSS files. RSS files are XML documents describing the last few items of (for example) a news site.

Post Comment
Login to post comments