BUG-869: replaced inefficient use of keySet with entrySet in XmlUtils

Change-Id: Ib665da6c15b6906e6eb220fd0ec53b7ecfbba04f
Signed-off-by: Martin Vitez <mvitez@cisco.com>