I have three xml files that I want to load into my php file with the simplexml_load_string function.
How can I achieve this?
@Jan-Henk:
Here is what I wrote on the comments:
This is what I have at the moment , it searches one xml file for the employee Jane:
$result = simplexml_load_file('employees1.xml');
echo "<strong>Matching employees with name 'Jane'</strong><br />";
$employees = $result->xpath('/employees/employee[name="Jane"]');
foreach($employees as $employee) {
echo "Found {$employee->name}<br />";
}
echo "<br />";
How would this look like with three xml files. And then instead of searching for employee Jane like above. It should search the three files for duplicates. So if an employee is listed two times in either of the three files. It should return: "Found Jane".