How about:
foreach my $node ( $dom->findnodes( '/Message/Body' ) ) { my $decoded = decode_base64($node->textContent()); $node->removeChild( $node->firstChild() ); $node->appendTextNode( $decoded ); }
In reply to Re: Replace the Text of an XML Element Using LibXML and DOM
by lestrrat
in thread Replace the Text of an XML Element Using LibXML and DOM
by jmurphy
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |