Constructs a Namespace object and assigns values to the
uri and
prefix properties.
The value of the
prefixValue parameter is assigned to the
prefix property in the following manner:
- If undefined is passed, prefix is set to undefined.
- If the argument is a valid XML name, it is converted
to a string and assigned to the prefix property.
- If the argument is not a valid XML name, the prefix
property is set to undefined.
The value of the
uriValue parameter is assigned
to the
uri property in the following manner:
- If a QName object is passed for the uriValue parameter,
the uri property is set to the value of the QName object's uri property.
- If a QName object is not passed for the uriValue parameter,
the uriValue parameter is converted to a string and assigned to the uri property.
Parameters:
prefixValue
-
the prefix value to use when constructing the Namespace.
uriValue
-
the value to use when constructing the Namespace.