in reply to Re: Text Parsing
in thread Text Parsing

Yeah, it looks like all it would need is a dummy document top-level node, unless there are also latin-1 chars or bad entities in it.
my $good = "<top>$bad</top>";
for example.

-- Randal L. Schwartz, Perl hacker
Be sure to read my standard disclaimer if this is a reply.