Why go
Xi’an works well as a short historic stop on a broader China itinerary, especially if you are already traveling by high-speed rail.
Best structure
Use one day for the core historic sights, one for food and neighborhoods, and keep transport simple around the old city.