Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: Remove level of elements (preserving their children) in XML::Twig?

by derby (Abbot)
on Feb 29, 2012 at 22:57 UTC ( [id://957048]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/env perl
    
    ...
    }
    
    print $newdom->toString(1);
    
  2. or download this
    #!/usr/bin/env perl
    
    ...
       $parent->appendChild( $_ ) foreach @rules;
    
    print $dom->toString(1);
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://957048]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others scrutinizing the Monastery: (4)
As of 2024-04-25 12:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found