2.4 Compatibility

$xml parameter is now a XMLElement object instead of a string
Merge pull request #13 from koolaid1551/master

Add Symphony 2.4 compatibility