Changed xml to php