Added reading/writing data from/to xml and string