Thread: note 60634 deleted from ref.simplexml by betz
note 60634 deleted from ref.simplexml by
betz
2006-02-28 11:07:12
Note Submitter:
----
Note that xml elements cannot contain a '-'.
The following 2 print function calls will fail!
<?php
if (!file_exists('test.xml')) {
exit('Failed to open galadhrim.xml.');
}
$xml = simplexml_load_file("text.xml");
print($xml->first-name);
print($xml->sur-name);
?>
--
PHP Notes Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub
.php