You need to learn about XPath.
http://www.php.net/manual/en/simplexmlelement.xpath.phpBasically it allows you to specify a path to an XML element.
It will return you an array of nodes that match the expression:
# $xml is an xml document (see the link above).
$xml->xpath('analysis/analysis_subject/activities/file_activities/file_modified[@name="C:\ntsvcs, Flags: Named pipe"]');
The above means find the 'file_modified' nodes in the xml document that are nested like this:
<STUFF>
<analysis>
<analysis_subject>
<activities>
<file_activities>
<file_modified name="C:\ntsvcs, Flags: Named pipe"> <!-- This node -->
</file_modified>
</file_activities>
</activities>
</analysis_subject>
</analysis>
</STUFF>
Where the 'file_modified' node has an attribute named 'name' with the value "C:\ntsvcs, Flags: Named pipe"