Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: how to strip XML into Plain Text file

by borisz (Canon)
on Jan 25, 2005 at 23:59 UTC ( [id://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?Last hourOther CB clients
Other Users?
Others learning in the Monastery: (1)
As of 2024-04-25 00:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found