small refactoring of post-xml.php