Not really sure what this line is going for since it's alway returning false. Should it not just be <code>@schema.validate(@xml).empty?</code>