Re: XML inside a file
| From: | R. P. Channing Rodgers, M.D. | Date: | Mon, 10 Jul 2000 19:26:36 +0000 |
| Subject: | Re: XML inside a file | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-5795@lists.php.net to get a copy of this message | ||
Chris,
This sounds very interesting; a concrete example would benefit many of
us. Is there some pared-down version of the PHP script you wrote that
you can make available as a teaching model?
Thanks and Cheerio, Rick Rodgers
> From: "Chris Adams" <chris@digitaria.com>
> Date: Mon, 10 Jul 2000 12:24:39 -0700
> Organization: Digitaria LLC
> Subject: Re: [PHP] XML inside a file
>
> > 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.)
>
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>
>