Re: array data to XML

From: Date: Wed, 24 Dec 2003 17:19:09 +0000
Subject: Re: array data to XML
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-173304@lists.php.net to get a copy of this message
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 !

« previous php.general (#173304) next »