protected function sanitizeNodeToValue($value)
    {
        $first = strpos($value, '>')+1;
        $last = strrpos($value, '<')-$first;
        $value = substr($value, $first, $last);
        $value = str_replace('"', "'", $value);
        return trim($value);
    }
protected function sanitizeNodeToValue($value)
    {
        $first = strpos($value, '>')+1;
        $last = strrpos($value, '<')-$first;
        $value = substr($value, $first, $last);
        $value = str_replace('"', "'", $value);
        return trim($value);
    }
protected function sanitizeNodeToValue ( $ value ) { $ first = strpos ( $ value , '>' ) + 1 ; $ last = strrpos ( $ value , '<' ) - $ first ; $ value = substr ( $ value , $ first , $ last ) ; $ value = str_replace ( '"' , "'" , $ value ) ; return trim ( $ value ) ; }
Remove first and last xml tag from string
Transform variable to string value

@param $value
@return string
Remove first and last xml tag from string Transform variable to string value