jdavidb (email not shown publicly)
http://voiceofjohn.blogspot.com/
J. David Blackstone has a Bachelor of Science in Computer Science and Engineering and nine years of experience at a wireless telecommunications company, where he learned Perl and never looked back. J. David has an advantage in that he works really hard, he has a passion for writing good software, and he knows many of the world's best Perl programmers.
I'm doing something all wrong... (Score:2)
XML::SAX::Intro contains the following example:
I've got almost exactly that, with MySAXHandler defined as a subclass of XML::SAX::Base with no overridden methods, and I get:
Can't locate object method "parse_uri" via package "XML::SAX::ParserFactory"I'm sure I'll figure this out somehow...
J. David works really hard, has a passion for writing good software, and knows many of the world's best Perl programmers
Re:I'm doing something all wrong... (Score:2)
And here it is! Typo in the docs; instead of calling the
newmethod of theXML::SAX::ParserFactoryclass, you're supposed to call theparsermethod, according to theXML::SAX::ParserFactoryPOD.J. David works really hard, has a passion for writing good software, and knows many of the world's best Perl programmers
Re:I'm doing something all wrong... (Score:2)
Glad to see you found the answer to your problem :) Please also note that you don't need to (and in fact probably shouldn't) inherit from XSB for Handlers. It's only for Drivers and Filters. What happened is that we optimised for the most common case, which is the Handler. So all you need there is the methods that you wish to use, *nothing* else.
-- Robin Berjon [berjon.com]