How could I inlcude the following php code in a xml file or how I change the xml file to a php file? Maybe SimpleXML is a solution, but I don't understand, how to use it.
You can find the live search script for what I need such a XML file here: http://www.w3schools.com/php/php_ajax_livesearch.asp
<?php
foreach ($verbs["a"] as $key => $list) {
echo '<link>'."\n";
echo '<title>'.($verbs["a"][$key]).'</title>'."\n";
echo '<url>a/'.letter($verbs["a"][$key]).'/</url>'."\n";
echo '</link>'."\n";
}
?>