This script basically takes a given .test file and generates as output one file per each XML fragment fount in that .test.

NTC (informative)