Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: how to strip XML into Plain Text file

by borisz (Canon)
on Jan 25, 2005 at 23:59 UTC ( #425082=note: print w/replies, xml ) Need Help??


in reply to how to strip XML into Plain Text file

perl script.pl file.xml
package MySAXHandler; use base 'XML::SAX::Base'; sub characters { print $_[1]->{Data}; } package main; use XML::SAX; XML::SAX::ParserFactory->parser( Handler => MySAXHandler->new ) ->parse_uri(shift);
Boris

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (5)
As of 2022-12-08 12:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?