Method IsSpecified
IsSpecified(Int32)
Returns true unless the attribute value was provided by DTD defaulting.
Declaration
bool IsSpecified(int index)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index | The attribute index (zero-based). |
Returns
Type | Description |
---|---|
System.Boolean | true if the value was found in the XML text, false if the value was provided by DTD defaulting. |
IsSpecified(String, String)
Returns true unless the attribute value was provided by DTD defaulting.
Declaration
bool IsSpecified(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 attribute's local name. |
Returns
Type | Description |
---|---|
System.Boolean | true if the value was found in the XML text, false if the value was provided by DTD defaulting. |
Remarks
Remember that since DTDs do not "understand" namespaces, the namespace URI associated with an attribute may not have come from the DTD.The declaration will have applied to the attribute's qName.
IsSpecified(String)
Returns true unless the attribute value was provided by DTD defaulting.
Declaration
bool IsSpecified(string qName)
Parameters
Type | Name | Description |
---|---|---|
System.String | qName | The XML qualified (prefixed) name. |
Returns
Type | Description |
---|---|
System.Boolean | true if the value was found in the XML text, false if the value was provided by DTD defaulting. |