Re: array data to XML
From: Matt Grimm (mgrimm_at_healthtvchannel.org)
Date: 12/24/03
- Next message: Matt Grimm: "Re: Removing/unsetting session variables."
- Previous message: Shay O\'Neil: "PHP Accelerator users?"
- In reply to: Chakravarthy Cuddapah: "array data to XML"
- Next in thread: Manuel Lemos: "Re: array data to XML"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
To: php-general@lists.php.net Date: Wed, 24 Dec 2003 08:19:09 -0900
Of course. If it's a simple (short) array, you can just create a string
with the XML tags and array values, and write that to a file with an XML
extension.
More sexy would be to use the DOMXML functions in PHP.
http://us3.php.net/manual/en/ref.domxml.php
Guy named Kris wrote a great XML -> PHP script that you can find here,
although it may be more than you are looking for:
http://www.devdump.com/phpxml.php
I've written a DOMXML-based PHP -> XML function that takes Kris' structure
as input, if you're interested.
-- Matt Grimm Web Developer The Health TV Channel, Inc. (a non - profit organization) 3820 Lake Otis Parkway Anchorage, AK 99508 907.770.6200 ext. 686 907.336.6205 (fax) E-mail: mgrimm@healthtvchannel.org Web: www.healthtvchannel.org "Chakravarthy Cuddapah" <cuddapah@cuddapahonline.net> wrote in message news:7924BCEA3C04774587C0B41F98C09EAC011840@cuddapahonline.CuddapahOnline.local... newbie ... Is it possible to format data in array to XML and display ? Thanks !
- Next message: Matt Grimm: "Re: Removing/unsetting session variables."
- Previous message: Shay O\'Neil: "PHP Accelerator users?"
- In reply to: Chakravarthy Cuddapah: "array data to XML"
- Next in thread: Manuel Lemos: "Re: array data to XML"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|