BEGIN {print "1..3\n";} END {print "not ok 1\n" unless $loaded;} use XML::DOM; $loaded = 1; print "ok 1\n"; #Test 2 my $str = < ]> Hey Butthead! Yes, Beavis. You farted. &huh; &huh; Yeah &huh; END my $parser = new XML::DOM::Parser (NoExpand => 1); my $doc = $parser->parse ($str); my $out = $doc->toString; $out =~ tr/\012/\n/; if ($out ne $str) { print "not "; } print "ok 2\n"; $str = $doc->getElementsByTagName("butthead")->item(0)->toString; $str =~ tr/\012/\n/; if ($str ne "\nYes, Beavis.\n ") { print "not "; } print "ok 3\n";