That would require an externally located filter which changes each time the output changes.
Now, which is going to be easier to test with a new input scheme: the filter that only does one thing, or your program?
Now, which is going to be more convenient: Rewrite a regular expression or grab a different data node? Personally I would rather have the data format change than have rebuild a complex parser.