Dan <dmb@mrc-dunn.cam.ac.uk> wrote:[color=blue]
> I am now using XML::Parser,
> which is working nicely, apart
> from the occasional weird behaviour,
> in some cases characters go missing,[/color]
[color=blue]
> The error is persistant, i.e. not a random
> caracter, but the same character each time
> goes missing.[/color]
If you show us a short and complete program that we can run that
illustrates your problem, then we can surely help you solve
your problem.
[color=blue]
> It is really confusing.[/color]
Can't help with unseen code...
[color=blue]
> Also my Char event gets called 3 times
> per tag,[/color]
That is "normal".
You'll get the PCDATA in dribs and drabs, so you need to keep collecting
it until you reach the end of the containing element.
[color=blue]
> even though there are no new
> lines anywhere in teh tag text.[/color]
The concept of "lines" is not present in XML.
Remove every newline from an XML document, and it is still
an XML document.
[snip upside-down quoting]
--
Tad McClellan SGML consulting
tadmc@augustmail.com Perl programming
Fort Worth, Texas