486 CHAPTER 20 (Web server version) WEB SERVICES You can
486 CHAPTER 20 WEB SERVICES You can also change the default cache location (by default, the same location as the executing script), by modifying the MAGPIE_CACHE_DIR constant: define(’MAGPIE_CACHE_DIR’, ‘/tmp/magpiecache/’); SimpleXML Everyone agrees that XML signifies an enormous leap forward in data management and application interoperability. Yet how come it s so darned hard to parse? Although powerful parsing solutions are readily available, DOM, SAX, and XSLT to name a few, each presents a learning curve that is just steep enough to cause considerable gnashing of the teeth among those users interested in taking advantage of XML s practicalities without an impractical time investment. Leave it to an enterprising PHP developer (namely, Sterling Hughes) to devise a graceful solution. SimpleXML offers users a very practical and intuitive methodology for processing XML structures, and is enabled by default as of PHP 5. Parsing even complex structures becomes a trivial task, accomplished by loading the document into an object and then accessing the nodes using field references, as you would in typical object-oriented fashion. The XML document displayed in Listing 20-4 is used to illustrate the examples offered in this section. Listing 20-4. A Simple XML Document
We recommend high quality webhost to host and run your jsp application: christian web host services.