RE: [PHP] importing from XML-files.
| From: | Maren Löchner | Date: | Thu, 22 Jan 2009 13:18:01 +0000 |
| Subject: | RE: [PHP] importing from XML-files. | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-287002@lists.php.net to get a copy of this message | ||
Maybe you can itterate over the childnodes from the parent element ?
-----Original Message-----
From: Merlin Morgenstern [mailto:merlin_x@fastmail.fm]
Sent: Thursday, January 22, 2009 1:53 PM
To: php-general@lists.php.net
Subject: [SPAM] - [PHP] importing from XML-files - Der Bayes'sche Filter hat
Spam erkannt.
Hi everybody,
I am creating an import script which is getting data out of an xml file.
Now I do have a problem with a file where 2 images are included. I need
to access the second image name, but can not find out how.
I do:
$xml = simplexml_load_file($files[$i]);
$data[pic1_base64] = $xml->anbieter->anhang->anhanginhalt;
This get's me the first image in line. But how could I get the second one?
Thank you for any help,
Merlin
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php