<?php try {
$xml = new SimpleXMLElement(preg_replace("/(<\/?)(\w+):([^>]*>)/", '$1$2$3', $rawXmlContent));
return json_decode(json_encode((array) $xml), true);
} catch (Exception $exception) {
throw new XmlParseException($exception->getMessage(), $exception->getCode(), $exception->getPrevious());
}