1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44
|
use strict ;
use warnings FATAL => 'all' ;
use Test ;
use ExtUtils::MakeMaker ;
BEGIN { plan tests => 1 } ;
use XML::Smart ;
my $xml = new XML::Smart(q`
<foo>
TEXT1 & more
<if.1>
aaa
</if.1>
<!-- CMT -->
<elsif.2>
bbb
</elsif.2>
</foo>
`,'html') ;
$xml = $xml->copy() ;
my $data = $xml->data(noident=>1 , noheader => 1 , wild=>1) ;
ok($data,q`<foo>
TEXT1 & more
<if.1>
aaa
</if.1>
<!-- CMT -->
<elsif.2>
bbb
</elsif.2></foo>
`) ;
1 ;
|