C
Represents an XML name consisting of a local (unqualified) name for an element or attribute and the URI of the namespace for that element or attribute.
Inheritance Hierarchy

Members

No filters for this type

Constructors

Initializes a new instance of the XmlName class.

Parameters

localName: string
The local name of the element.
ns: string
The namespace it belongs to.

Properties

Gets or sets the local name.
final

Property Value

The local name.
Gets the namespace.
readonlyfinal

Methods

Determines whether another object is equal to this one.

Parameters

obj: any
the other object to compare for equality

Return Value

boolean
true if obj is considered equal to this instance.
Returns a hash code for this object.

The hash code is a numeric value that can be used to treat this object as a key in a hash table or similar data structure.

Two objects that are considered equal must have the same hash code. However, the reverse does not hold and two objects having the same hash code don't have to be equal. Ideally, the hash code should be roughly uniformly-distributed to prevent hash tables from performing poorly. Calculating the hash code is also a potentially frequent operation and should therefore be fast.

Return Value

number
the hash code for this object
Returns a string representation for this object.

Static Methods

Performs a conversion from to XmlName.
The name is made up of at most two parts: the namespace and the local name. When given an input like "http://www.w3.org/2000/xmlns/}local" it will be split at the "}" character and the first part will be used as the namespace URI, the second part as the local name. If no "}" character is used in the input then it will be assumed that the input consists of the local name only.
static

Parameters

expandedName: string
Name of the expanded.

Return Value

XmlName
The result of the conversion.