URL-parse modified to send XML without errors