Minor tweaks in the xml parsing
More tweaks in XML parsing url
Additional debug logging