S
Skeets
given the following code:
<?xml version="1.0" encoding="utf-8" ?>
<rss version="0.91">
<config>
<status>exists</status>
</config>
</rss>
why is <rss version="0.91"></rss> required to get it to print out with
the following php code:
<?php
$s = simplexml_load_file('default/config.xml');
print $s->config->status . "\n";
?>
i've visited a few tutorials that didn't even mention rss and, of
course, their examples didn't work. the above code does work. remove
rss and it doesn't work.
how come?
<?xml version="1.0" encoding="utf-8" ?>
<rss version="0.91">
<config>
<status>exists</status>
</config>
</rss>
why is <rss version="0.91"></rss> required to get it to print out with
the following php code:
<?php
$s = simplexml_load_file('default/config.xml');
print $s->config->status . "\n";
?>
i've visited a few tutorials that didn't even mention rss and, of
course, their examples didn't work. the above code does work. remove
rss and it doesn't work.
how come?