use constant END_TAG = qr#</ArgusDataStream>#; my $xml = ""; while (<STDIN>) { my $line = $_; $xml .= $line; if ($line =~ END_TAG) { # Process the XML here... # Start again $xml = ""; } }
In reply to Re: Record based XML stream processing?
by Marcello
in thread Record based XML stream processing?
by fs
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |