in reply to Replace the Text of an XML Element Using LibXML and DOM
How about:
foreach my $node ( $dom->findnodes( '/Message/Body' ) ) { my $decoded = decode_base64($node->textContent()); $node->removeChild( $node->firstChild() ); $node->appendTextNode( $decoded ); }
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: Replace the Text of an XML Element Using LibXML and DOM
by jmurphy (Acolyte) on Jul 02, 2002 at 18:40 UTC | |
by lestrrat (Deacon) on Jul 02, 2002 at 20:28 UTC |
In Section
Seekers of Perl Wisdom