no idea why, but php echoes xml doctype on second line, causing error, but xml works without it