Adapted xml to php