XML DOM prefix Property

The following code fragment loads "books_ns.xml" into xmlDoc and gets the namespace prefix from the first <title> element

Definition and Usage

The prefix property returns namespace prefix for the selected element

If the selected node is not an element or attribute, this property always returns NULL.

Syntax

elementNode.prefix

❮ Element Object