Think about Loose Coupling | |
PerlMonks |
Re: Re: XML::TokeParser::Simple - pretty much like HTML::TokeParser::Simpleby PodMaster (Abbot) |
on Jun 08, 2003 at 11:48 UTC ( [id://264094]=note: print w/replies, xml ) | Need Help?? |
After all this time, and finally getting closer and closer to
releasing XML::TokeParser (one which has this functionality built-in),
I finally took another look at this thread and realized I too need to do something like that.
D'oh. I mean, why would you get_tag and then test to see if it's a tag, or a process instruction, since it can only be a tag. I quickly fixed this and then I got reminded again that a XML::TokeParser::Token doesn't have a constructor -- yuck. Then I thought maybe I should force get_tag to return a proper token, but that would break backwards compatiblity, and I sure don't wanna do that. Then I think to myself I should forget all this nonsense, and have
Thoughts/Comments? I think maybe that's what i'll do, because does not look so hot. *sigh*
In Section
Craft
|
|