Method GetValue
GetValue(Int32)
Look up an attribute's value by index.
Declaration
string GetValue(int index)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index | The attribute index (zero-based). |
Returns
Type | Description |
---|---|
System.String | The attribute's value as a string, or null if the index is out of range. |
Remarks
If the attribute value is a list of tokens (IDREFS, ENTITIES, or NMTOKENS), the tokens will be concatenated into a single string with each token separated by a single space.
See Also
GetValue(String, String)
Look up an attribute's value by Namespace name.
See GetValue(Int32) for a description of the possible values.
Declaration
string GetValue(string uri, string localName)
Parameters
Type | Name | Description |
---|---|---|
System.String | uri | The Namespace URI, or the empty String if the name has no Namespace URI. |
System.String | localName | The local name of the attribute. |
Returns
Type | Description |
---|---|
System.String | The attribute value as a string, or null if the attribute is not in the list. |
GetValue(String)
Look up an attribute's value by XML qualified (prefixed) name.
See GetValue(Int32) for a description of the possible values.
Declaration
string GetValue(string qName)
Parameters
Type | Name | Description |
---|---|---|
System.String | qName |
Returns
Type | Description |
---|---|
System.String |