Perl-Sensitive Sunglasses | |
PerlMonks |
Re: how to strip XML into Plain Text fileby Aristotle (Chancellor) |
on Jan 25, 2005 at 22:27 UTC ( [id://425063]=note: print w/replies, xml ) | Need Help?? |
I'm turning into the resident XSLTmonk. Feed this stylesheet into whichever XSLT processor is handy, along with your file:
This is minimal because in your case the XSLT processor defaults (recurse full tree, printing text nodes) are a perfect fit. For some Perl code driving an XSL transform, see my example elsewhere from earlier today: Re: MathML 2 ascii?. But if you can install those modules you probably have a commandline XSLT processor installed anyway. Makeshifts last the longest.
In Section
Seekers of Perl Wisdom
|
|