The best substitute for Shaoxing wine is dry sherry. Rice vinegar will work in a pinch, but it is quite a bit more acidic. You may want to combine it with white grape juice to balance the acidity.