Factor out common xsi:schemaLocation handling