Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: XML::Parser sigh...

by runrig (Abbot)
on Jul 27, 2005 at 21:35 UTC ( #478733=note: print w/replies, xml ) Need Help??


in reply to XML::Parser sigh...

Use parse instead of parsefile, and pass it an IO handle. Filter the data before it gets to the parser. There are several ways to do that. You could write a separate program and pipe the output to this one (and pass the parser STDIN), fork a child process which reads/filters/outputs the file and the parent process reads from it (easy with pipe), or create a tied filehandle which filters input (which may work if XML::Parser will accept a tied filehandle).

Replies are listed 'Best First'.
Re^2: XML::Parser sigh...
by rogue90 (Novice) on Jul 27, 2005 at 23:33 UTC
    brilliant. Thanks. I have been looking at this for so long I didn't even notice parse in the docs.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (5)
As of 2020-12-02 00:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How often do you use taint mode?





    Results (25 votes). Check out past polls.

    Notices?