PHP Class that parses XML objects