I am writing a script at the moment that will grab certain information from HTML using dom4j.
Since Python/Jython does not have a native switch stat
With your code you're running your functions all get called.
handlers = { 'extractTitle': extractTitle, 'extractMetaTags': extractMetaTags } handlers[type](dom)
Would work like your original if code.
if