5
use Test::More qw(no_plan);
7
use_ok( 'XML::Bare', qw/xmlin/ );
9
my ( $ob, $root ) = XML::Bare->simple( text => "<node att='2'><![CDATA[cdata contents]]></node>" );
11
ok( $root, "Got some root" );
12
my $attval = $root->{'node'}{'att'};
13
is( $attval, '2', "Got the right attribute value" );
14
my $cdataval = $root->{'node'}{'content'};
15
is( $cdataval, 'cdata contents', "Got the right cdata value" );
b'\\ No newline at end of file'