[sword-devel] What am I doing wrong - Sword API, Perl?

Peter von Kaehne refdoc at gmx.net
Sat Jul 9 01:49:10 MST 2011


On Sat, 2011-07-09 at 10:21 +0200, scribe777 at gmail.com wrote:
>  You'll have to piece it together using the call I gave in the previous email as the text node.

Thanks, yes, I did just that after your first mail. This is using
XML::LibXML:

-----------------------------------------
[..]
foreach (@references) {
  my $ref = $_->getAttribute("osisRef");
  $scope->setText($ref);
  $_->firstChild->replaceDataString( $_->textContent(),
$scope->getRangeText() );
}





More information about the sword-devel mailing list