Method ProcessName
ProcessName(String, String[], Boolean)
Process a raw XML qualified name, after all declarations in the current context have been handled by DeclarePrefix(String, String).
This method processes a raw XML qualified name in the current context by removing the prefix and looking it up among the prefixes currently declared. The return value will be the array supplied by the caller, filled in as follows:
parts[0] | The Namespace URI, or an empty string if none is in use. |
parts[1] | The local name (without prefix). |
parts[2] | The original raw name. |
All of the strings in the array will be internalized. If the raw name has a prefix that has not been declared, then the return value will be null.
Note that attribute names are processed differently than element names: an unprefixed element name will receive the default Namespace (if any), while an unprefixed attribute name will not.
Declaration
public string[] ProcessName(string qName, string[] parts, bool isAttribute)
Parameters
Type | Name | Description |
---|---|---|
System.String | qName | The XML qualified name to be processed. |
System.String[] | parts | An array supplied by the caller, capable of holding at least three members. |
System.Boolean | isAttribute | A flag indicating whether this is an attribute name (true) or an element name (false). |
Returns
Type | Description |
---|---|
System.String[] | The supplied array holding three internalized strings representing the Namespace URI (or empty string), the local name, and the XML qualified name; or null if there is an undeclared prefix. |