Cleaned up - needs xml to be used

I cleaned up the echoes, but the xml is empty when I try to access it's elements.