public function xml2json(): void
    {
        $xml = simplexml_load_string($this->xmlData, NULL, LIBXML_NOCDATA);
        $this->jsonData = json_encode($xml);
    }
public function xml2json(): void
    {
        $xml = simplexml_load_string($this->xmlData, NULL, LIBXML_NOCDATA);
        $this->jsonData = json_encode($xml);
    }
public function xml2json ( ) : void { $ xml = simplexml_load_string ( $ this -> xmlData , NULL , LIBXML_NOCDATA ) ; $ this -> jsonData = json_encode ( $ xml ) ; }
Convert XML to JSON
Convert XML to JSON