Streams, protocols, documents and fragments

Ken MacLeod ken at
Thu Feb 25 00:06:13 GMT 1999

"Matthew Sergeant (EML)" <Matthew.Sergeant at> writes:

> Perl's XML::Parser (and by logic I assume this comes from expat)
> already does this - you can attach an IO handle (which can be an
> IO::Socket if you want it to come from a socket) to the XML parser,
> tell it what the stream delimiter is (e.g. ^L) and leave it merrily
> parsing XML. You have to tell it to parse again when it stops,
> because that's how it says "I've reached the end of one stream" -
> but it works fine. This is probably true of other languages that use
> expat to parse XML for them.

I had thought that was in expat too but looking deeper I found that
it's being done by XML::Parser and not expat itself.

  Ken MacLeod
  ken at

xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev at
Archived as: and on CD-ROM/ISBN 981-02-3594-1
To (un)subscribe, mailto:majordomo at the following message;
(un)subscribe xml-dev
To subscribe to the digests, mailto:majordomo at the following message;
subscribe xml-dev-digest
List coordinator, Henry Rzepa (mailto:rzepa at

More information about the Xml-dev mailing list