https://www.php-resource.de/forum/xml/62440-input-output