Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: compacting XML?

by Lotus1 (Deacon)
on Nov 30, 2011 at 17:46 UTC ( #940910=note: print w/ replies, xml ) Need Help??


in reply to compacting XML?

XML::Tidy has a function, strip(), that does exactly what you have requested.

strip()

The strip() member function searches the Tidy object for all mixed-content (i.e., non-data) text nodes && empties them out. This will basically unformat any markup indenting.

strip() is used by compress() && tidy() but it is exposed because it could be worthwhile by itself.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (7)
As of 2016-08-26 12:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    The best thing I ever won in a lottery was:















    Results (370 votes). Check out past polls.