Will I be able to read xml from php file?
<p>I have apps that read online settings, and until now these settings are stored in xml. So my app read it's setting straight forward:</p>

<pre><code>"http://foo.net/app/setting.xml"
</code></pre>

<p>But I want it to be easier to maintain, and store a lot of data in the database, So im thinkink of replacing <code>../app/setting.xml</code> with something like <code>../setting.php</code> where I in the php file would do something like</p>

<pre><code>&lt;?php

include mysql stuff ..

$bookid = $_GET['id'];
read database based on $bookid;

?&gt;

&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;book&gt;
&lt;name&gt;&lt;?php echo $row['name']; ?&gt;&lt;/name&gt;
&lt;published&gt;&lt;?php echo $row['published']; ?&gt;&lt;/published&gt;
&lt;/book&gt;
</code></pre>

<p>Is it doable? Do I have to care about header stuff like header expires and cache?</p>
