Subject: | segmentation fault, may be because of misuse, but anyway it's a segfault |
Script:
require XML::LibXML;
my $doc = XML::LibXML::Document->new('1.0', 'UTF-8');
my $root = $doc->createElement('sphinx:docset');
my $schema = $doc->createElement('sphinx:schema');
foreach ( qw(content) ) {
my $field = $doc->createElement('sphinx:field');
$field->setAttribute( name => $_ );
$schema->appendChild( $schema );
}
$root->appendChild( $schema );
print $doc->toString;
Show quoted text
---- end of script ----
Compiled against libxml2 version: 20703
Running libxml2 version: 20703
PASS XML-LibXML-1.69 darwin-2level 8.11.1
--
Best regards, Ruslan.