Playing around with php reading and writing xml files