Hervé Girod - 2010-11-19

To be able to do this, I would have to stop the parsing before the end in the various parsers if they recognize that it's not the right type of file. This is not straightforward in SAX parsers, but still very possible. I will try to add a generic behavior to do this and "fail gracefully" in these circumstances.

Something I can also do, but later, would be to go from SAX parsing to pull parsing (Stax). I already did this in scenarios because it is standard to pause and stop a scenario. Only it involves much more work because it changes the architecture of the parser itself.