Connecting Tech Pros Worldwide Forums | Help | Site Map

converting xml files to multidimensional php arrays

monomaniac21
Guest
 
Posts: n/a
#1: Jan 10 '07
hi guys

i need to display data from an xml file in php. what is the best way to
get the data into a php array?

thanks

marc


Jeff North
Guest
 
Posts: n/a
#2: Jan 10 '07

re: converting xml files to multidimensional php arrays


On 10 Jan 2007 02:04:09 -0800, in comp.lang.php "monomaniac21"
<mcyi2mr3@googlemail.com>
<1168423449.376644.61650@o58g2000hsb.googlegroups. comwrote:
Quote:
>| hi guys
>|
>| i need to display data from an xml file in php.
I bet you don't :-)
If the output is to a browser then use xml and xsl.
Quote:
>| what is the best way to
>| get the data into a php array?
>|
>| thanks
>|
>| marc
---------------------------------------------------------------
jnorthau@yourpantsyahoo.com.au : Remove your pants to reply
---------------------------------------------------------------
=?UTF-8?B?SXbDoW4gU8OhbmNoZXogT3J0ZWdh?=
Guest
 
Posts: n/a
#3: Jan 10 '07

re: converting xml files to multidimensional php arrays


monomaniac21 wrote:
Quote:
i need to display data from an xml file in php. what is the best way to
get the data into a php array?
RTFM:

http://php.net/simplexml

--
----------------------------------
Iván Sánchez Ortega -ivansanchez-algarroba-escomposlinux-punto-org-

Un ordenador no es un televisor ni un microondas, es una herramienta
compleja.
monomaniac21
Guest
 
Posts: n/a
#4: Jan 10 '07

re: converting xml files to multidimensional php arrays


Quote:
I bet you don't :-)
If the output is to a browser then use xml and xsl.
thanks for the reply jeff

is it possible then to embed an xml file in a php page? and if so how
straight-forward is that?

thanks again

Jeff North
Guest
 
Posts: n/a
#5: Jan 10 '07

re: converting xml files to multidimensional php arrays


On 10 Jan 2007 03:25:17 -0800, in comp.lang.php "monomaniac21"
<mcyi2mr3@googlemail.com>
<1168428317.187021.168590@k58g2000hse.googlegroups .comwrote:
Quote:
>|
>| I bet you don't :-)
>| If the output is to a browser then use xml and xsl.
>|
>| thanks for the reply jeff
>|
>| is it possible then to embed an xml file in a php page? and if so how
>| straight-forward is that?
>|
>| thanks again
google on xml + "data islands".
http://www.devarticles.com/c/a/XML/T...-Data-Islands/
http://www.w3schools.com/xml/xml_applications.asp

Might help you get started.
---------------------------------------------------------------
jnorthau@yourpantsyahoo.com.au : Remove your pants to reply
---------------------------------------------------------------
Closed Thread