finished xmlLoader - needs testing