Adding error handling

xmlToJson function conversion
Refactoring to correctly extract XML error messages
Updated README for MLDB feedback