Thanks for the answers to my other posts.
I've run into another glitch. When I tried to position a table after a target string, it did not work and the table appeared before the target string.
$loc=$content->selectElementByContent($target);
$content->insertTable($loc,"new table",5,5,position=>'after');
The default in Xpath, around line 1834 is to paste_before
if (($opt{'position'}) && ($opt{'position'} eq 'after'))
{
$element->paste_after($posnode);
}
else
{
$element->paste_before($posnode);
}
I flipped the if/else around and got it to paste after (I haven't tried to set position=>'before')
Bob