Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

best practice for replacing XML comment text

by Lotus1 (Vicar)
on Mar 11, 2019 at 19:05 UTC ( #1231126=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
            #Update the text in the comment.
            my ($first_comment) = $doc->findnodes("/comment()[1]");
    ...
            $Appname_node->removeChildNodes();
            $Appname_node->appendText($0);
    
  2. or download this
    
    use strict;
    ...
    1: xyz
    2: -123--456-
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://1231126]
Approved by Corion
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (2)
As of 2021-06-13 03:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What does the "s" stand for in "perls"? (Whence perls)












    Results (54 votes). Check out past polls.

    Notices?