Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re^2: prune xml of empty elements

by happy.barney (Friar)
on Jul 15, 2011 at 07:36 UTC ( [id://914517]=note: print w/replies, xml ) Need Help??


in reply to Re: prune xml of empty elements
in thread prune xml of empty elements

$str =~ s@<(.*?)/>@@g; 1 while $str =~ s@<(.*?)>\s*</\1>@@g; $str =~ s@(?<=>)\s+(?=\n)@@g;

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (3)
As of 2025-07-14 15:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.