Working on instantiating Resources from XML