move parse xml to one file

Change-Id: Ia85e9204c6ecfbbf3b0895e832eb8a982b759d2f