get and parse xml data