Major changes. Fetch xml data AND get output concurrently.

Before I had this awkward get_xml function to get all the xml at the
same time and set the xml attribute.  That is gone now.