Re: XML inside a file

From: Date: Mon, 10 Jul 2000 19:24:39 +0000
Subject: Re: XML inside a file
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-5791@lists.php.net to get a copy of this message
> wondering if you can just parse a section of a page, instead of the whole > thing - so you would have a php script, and it would draw some > XML-formatted text out of a database and then parse it and spit it out into > the middle of an HTML page. Is this possible, or is this bad design with > XML? (I know that I can just use string parsing functions to properly > parse my XML stuff, but I want to play with Php's built-in functions) Yes. As an example, Oingo.com allows you to access their web directory and search engine using XML. For one of our clients, I wrote a PHP script which retrieves the appropriate XML file, formats it, and puts the output into a table cell from a template. (The code Oingo provided is a really nasty Perl CGI. No XML parser or anything, just a bunch of regular expressions. The PHP is a LOT cleaner.)

« previous php.general (#5791) next »