improved xml resource interface