GetName

Description

Retrieves the local name of a PBDOM_ELEMENT object.

Syntax

pbdom_element_name.GetName()

Argument

Description

pbdom_element_name

The name of a PBDOM_ELEMENT object


Return value

String.

The name of the element as it appears in the XML document but without any namespace prefix.

Examples

The GetName method returns the string abc when it is invoked for the name of the following element:

<ns:abc>My Element</ns:abc>

Usage

For an XML element that appears in the form [namespace_prefix]:[element_name], the local element name is element_name. When the XML element has no namespace prefix, the local name is simply the element name.

Use the GetQualifiedName method to obtain the fully qualified name of an element (with the namespace prefix).

See also

GetNamespacePrefix

GetNamespaceUri

RemoveNamespaceDeclaration

SetName