Subject: | setData() has no effect |
Sequence
$import = $doc->createProcessingInstruction("import");
$import->setData(namespace => "xforms", implementation => "#FormsPlayer");
results in toString() showing an empty element, that is <?import?>. Same with $import->setData('namespace="xforms" implementation="#FormsPlayer"'). However
$import = $doc->createProcessingInstruction("import", 'namespace="xforms" implementation="#FormsPlayer"');
works correctly, creating element <?import namespace="xforms" implementation="#FormsPlayer"?>
This on perl 5.8.3, latest XML::LibXML from cpan, libxml2 2.5.10 from Redhat Enterprise Linux 3 libxml2-2.5.10-7 rpm.