note 94320 rejected from function.simplexml-load-file by danbrown
| From: | danbrown@php.net | Date: | Thu, 29 Oct 2009 15:11:24 +0000 |
| Subject: | note 94320 rejected from function.simplexml-load-file by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-162251@lists.php.net to get a copy of this message | ||
Note Submitter: dakuh at volny dot cz
----
Hi, I have this code in my script
<?php
$xml = simplexml_load_file("test.xml");
$zobraz="$xml->record->osoba";
echo "$zobraz";
?>
which works eith this file:
<?xml version="1.0" encoding="UTF-8"?>
<test>
<record>
<osoba>clovek1</osoba>
<jmeno>jmeno1</jmeno>
</record>
</test>
but instead clovek1 it writes ->osoba
Please where is the mistake?