Ver original$ex="/<tema>nuevotema</tema>/i";$str=file_get_contents("datos.xml");if(preg_match($ex,$str)){ echo"si esta";}