static public function toXml($data)
    {
        if (is_array($data)) {
            $data = static::encode($data);
        }
        return simplexml_load_string($str, 'SimpleXMLElement', LIBXML_NOCDATA);
    }
static public function toXml($data)
    {
        if (is_array($data)) {
            $data = static::encode($data);
        }
        return simplexml_load_string($str, 'SimpleXMLElement', LIBXML_NOCDATA);
    }
static public function toXml ( $ data ) { if ( is_array ( $ data ) ) { $ data = static :: encode ( $ data ) ; } return simplexml_load_string ( $ str , 'SimpleXMLElement' , LIBXML_NOCDATA ) ; }
from string to SimpleXMLElement
@param  string|array $data
@return SimpleXMLElement
from string to SimpleXMLElement