Improving handling of XML storage depending on storexml setting.
Adding security and XML handling to xmlservice.php from liveimport.php