public function uri_to_qname($uri) {
        if (preg_match('~^(.*[\/\#])([a-z0-9\-\_\:]+)$~i', $uri, $m)) {
            $ns = $m[1];
            $localname = $m[2];
            $prefix = $this->get_prefix($ns);
            if ( $prefix != null && $prefix !== FALSE) {
                return $prefix . ':' . $localname;
            }
        }
        return null;
    }
public function uri_to_qname($uri) {
        if (preg_match('~^(.*[\/\#])([a-z0-9\-\_\:]+)$~i', $uri, $m)) {
            $ns = $m[1];
            $localname = $m[2];
            $prefix = $this->get_prefix($ns);
            if ( $prefix != null && $prefix !== FALSE) {
                return $prefix . ':' . $localname;
            }
        }
        return null;
    }
public function uri_to_qname ( $ uri ) { if ( preg_match ( '~^(.*[\/\#])([a-z0-9\-\_\:]+)$~i' , $ uri , $ m ) ) { $ ns = $ m [ 1 ] ; $ localname = $ m [ 2 ] ; $ prefix = $ this -> get_prefix ( $ ns ) ; if ( $ prefix != null && $ prefix !== FALSE ) { return $ prefix . ':' . $ localname ; } } return null ; }
Convert a URI to a QName using registered namespace prefixes
@param string $uri the URI to convert
@return string the QName corresponding to the URI if a suitable prefix exists, null otherwise
Convert a URI to a QName using registered namespace prefixes