ok fixed cdsplice so it work on xml as input as well