src/TagConverter.php
public static function xml($original) {
    $array = self::convert($original);
    $xml_data = new \SimpleXMLElement('<?xml version="1.0"?><data></data>');
    self::arrayToXml($array, $xml_data);
    return $xml_data->asXML();
  }
public static function xml($original) {
    $array = self::convert($original);
    $xml_data = new \SimpleXMLElement('<?xml version="1.0"?><data></data>');
    self::arrayToXml($array, $xml_data);
    return $xml_data->asXML();
  }
Return XML object.

@param string $original
The text, in tagged corpus format.

@return object
An XML object.