Updated the php code to post xml data.