add interface for parse xml read and write