As code:
my $term1 = XML::LibXML::Element->new('term'); $term1->appendTextNode('Einführung'); my $term2 = XML::LibXML::Element->new('term'); $term2->appendTextNode('Soziologie'); my $head = XML::LibXML::Element->new('head'); $head->addChild($term1); $head->appendTextNode(' in die '); $head->addChild($term2);
(Pay attention to the notes for addChild in the docs.)
In reply to Re^2: Create Mixed Content with XML::LibXML
by ikegami
in thread Create Mixed Content with XML::LibXML
by bastjan
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |