Fix: xml: Correctly determine the lowest allowed schema version