PHP Parse a PHP file echoing XML data
<p>I have a php file which generates and echo's XML data.</p>

<p>So basically it shows a XML but it's a PHP file.</p>

<p>I need to read and parse this data.</p>

<p>I've seen this: <code>simplexml_load_file('some.xml');</code> but in this case I cannot do this as I've got the xml as a php file.</p>

<p>How can I do this?</p>
