XML array

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



hi this is my first post on php general mailing list, i want to read a xml
file to retrieve data. i tried by using "DOM" and "simple xml" but i
couldn't.
the xml file looks like this..

*<note>
<head>
           <title>the the title</title>
           <date>7-6-2011</date>
</head>

<data>
<book>
<name>book 1</name>
<author>author 1</author>
</book>

<book>
<name>book 2</name>
<author>auther 2</author>
</book>

</data>
</note>*

i want to put both "name" and "author" values in a multy dimensional array.
what dimension is suitable? what should i do for resolve my problem?
thanks.

[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux