Style: added <?php for portability
Refactor: using DOMDocument instead of SimpleXML
Refactor: obsolete SimpleXML methods deleted
Rename: scanner.php