XML-STX

 view release on metacpan or  search on metacpan

test/cdata-no.stx  view on Meta::CPAN

<stx:transform version="1.0" 
  xmlns:stx="http://stx.sourceforge.net/2002/ns"
  recognize-cdata="no"
  strip-space="yes">

  <stx:template match="text()[name(..)='root']">
    [<stx:copy/>]
  </stx:template>

</stx:transform>



( run in 2.008 seconds using v1.01-cache-2.11-cpan-39bf76dae61 )