in reply to Re: Replace the Text of an XML Element Using LibXML and DOM
in thread Replace the Text of an XML Element Using LibXML and DOM
Hopefully this can help someone else. I ended up implementing as follows:
Again thanks. You got me going on the right path.my $root = $dom->getDocumentElement; my $bodies = $root->getElementsByTagName( "MessageBody" ); foreach my $body ( $bodies->get_nodelist() ) { my $encoded_node = $body->firstChild(); $encoded_node->replaceDataString( $encoded_node->data(), decode_ba +se64( $encoded_node->data() )); }
Take care,
Jay
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Replace the Text of an XML Element Using LibXML and DOM
by lestrrat (Deacon) on Jul 02, 2002 at 20:28 UTC |