PHP Search for Text/Data in Variable containing XML Data
<p>I have XML data inside a variable.</p>

<p>I now need to search for a specific text inside this variable.</p>

<p>Can anyone point me in the right direction? I've been googling this but no good results :o/</p>

<p>The XML data looks like this:</p>

<pre><code>&lt;status&gt;
&lt;connection_status&gt;successful&lt;/connection_status&gt;
&lt;operation_status&gt;successful&lt;/operation_status&gt;
&lt;Options&gt;
&lt;data_2&gt;
&lt;data_7422731&gt;
&lt;id&gt;7431&lt;/id&gt;
&lt;assetId&gt;2&lt;/assetId&gt;
&lt;startDate&gt;2013-03-05 11:00:00&lt;/startDate&gt;
&lt;endDate&gt;2013-03-05 12:00:00&lt;/endDate&gt;
&lt;/data_7422731&gt;
&lt;/data_2&gt;
&lt;/Options&gt;
&lt;/status&gt;
</code></pre>

<p>I need to search for a specified ID.</p>

<p>For example the id "7431"</p>
