http://qs1969.pair.com?node_id=478728


in reply to Re: XML::Parser sigh...
in thread XML::Parser sigh...

sure:
<data> <RECORD> <id>1381</id> <title>Water & Fluids</title> <year>1986</year> </RECORD> ... </data>

Replies are listed 'Best First'.
Re^3: XML::Parser sigh...
by GrandFather (Saint) on Jul 27, 2005 at 21:35 UTC

    The parsers that I've looked at require the whole XML documents. Internally they may swallow a bite at a time, but you've got to give them the whole thing as either a string or a file handle.

    I guess options are either preprocess the whole document or use a tied variable passed to the parser to process the file as the parser reads it.


    Perl is Huffman encoded by design.