System::Xml::XmlReader::GetAttribute method
Contents
[
Hide
]XmlReader::GetAttribute(int32_t) method
When overridden in a derived class, gets the value of the attribute with the specified index.
virtual String System::Xml::XmlReader::GetAttribute(int32_t i)=0
Parameter | Type | Description |
---|---|---|
i | int32_t | The index of the attribute. The index is zero-based. (The first attribute has index 0.) |
ReturnValue
The value of the specified attribute. This method does not move the reader.
See Also
- Class String
- Class XmlReader
- Namespace System::Xml
- Library Aspose.PUB for C++
XmlReader::GetAttribute(String) method
When overridden in a derived class, gets the value of the attribute with the specified XmlReader::get_Name value.
virtual String System::Xml::XmlReader::GetAttribute(String name)=0
Parameter | Type | Description |
---|---|---|
name | String | The qualified name of the attribute. |
ReturnValue
The value of the specified attribute. If the attribute is not found or the value is String::Empty, nullptr is returned.
See Also
- Class String
- Class XmlReader
- Namespace System::Xml
- Library Aspose.PUB for C++
XmlReader::GetAttribute(String, String) method
When overridden in a derived class, gets the value of the attribute with the specified XmlReader::get_LocalName and XmlReader::get_NamespaceURI values.
virtual String System::Xml::XmlReader::GetAttribute(String name, String namespaceURI)=0
Parameter | Type | Description |
---|---|---|
name | String | The local name of the attribute. |
namespaceURI | String | The namespace URI of the attribute. |
ReturnValue
The value of the specified attribute. If the attribute is not found or the value is String::Empty, nullptr is returned. This method does not move the reader.
See Also
- Class String
- Class XmlReader
- Namespace System::Xml
- Library Aspose.PUB for C++