use strict;
use warnings;
use XML::LibXML;
use Test::More tests => 1;
my $in = 'Need to export this text';
my $want = 'Need to export this text';
my $xml = XML::LibXML->load_xml (string => $in);
my $have = $xml->getElementsByTagName ('g')->shift->toString;
is ($have, $want);