Did you run the code? Did you read the comments?
It handles nested tags, you mean a tag nested within itself,
they are parsed but a level is lost.
PI won't be supported.
I shall endeavor to handle > in the attributes and CDATA.
I did not see XML::SAX::PurePerl in my search earlier, oh well.
The XML spec is far from the easiest thing to read.
I appreciate the insight, and am filling in most
of the gaps but this is going to be like perl52perl6,
100%, 80% of the time. It wasn't even the original intent.
It started as just an RSS parser but seemed to handle
generic XML and so It thought I'd share it.
Other things to keep in mind are;
I did in fact say it was lax, this is snippets not craft.
perl -pew "s/\b;([mnst])/'$1/g"