Make `--sourcepos` affect xml writer too.