Perl: the Markov chain saw | |
PerlMonks |
Re: compacting XML?by choroba (Cardinal) |
on Nov 30, 2011 at 08:58 UTC ( [id://940798]=note: print w/replies, xml ) | Need Help?? |
I usually use XML::XSH2 for XML manipulation. This code removes all the text that is only whitespace (which is not exactly the same as your specification), but the output is the same as of the other solutions. Update: This should delete only whitespace that has an element sibling:
In Section
Seekers of Perl Wisdom
|
|