fix simplexml for rest of php