Modification of canParseFormat

Added a check to canParseFormat('xml') check for json_encode and
json_decode.
To be removed when updating xml parsing to use only simplexml functions.