DOMXPath->registerNamespace()

Registers the namespace with the DOMXPath object ()

DOMXPath {
  bool registerNamespace(string prefix,
                         string namespaceURI);

}

Registers the namespaceURI and prefix with the DOMXPath object.

参数

prefix

The prefix.

namespaceURI

The URI of the namespace.

返回值

如果成功则返回 TRUE,失败则返回 FALSE