XML DOM lookupPrefix() Method

The following code fragment loads "books_ns.xml" into xmlDoc and finds the prefix for the given namespace URI

Definition and Usage

The lookupPrefix() method returns the prefix matching the specified namespace URI on the current node.

Syntax

elementNode.lookupPrefix(URI)
Parameter Description
URI Required. The namespace URI for the prefix to find

❮ Element Object