Resolve xml attribute not being set