MoveToAttribute()

XmlTextReader::MoveToAttribute(String) method

Moves to the attribute with the specified name.

bool System::Xml::XmlTextReader::MoveToAttribute(String name) override

Arguments

ParameterTypeDescription
nameStringThe qualified name of the attribute.

Return Value

true if the attribute is found; otherwise, false. If false, the reader’s position does not change.

XmlTextReader::MoveToAttribute(String, String) method

Moves to the attribute with the specified local name and namespace URI.

bool System::Xml::XmlTextReader::MoveToAttribute(String localName, String namespaceURI) override

Arguments

ParameterTypeDescription
localNameStringThe local name of the attribute.
namespaceURIStringThe namespace URI of the attribute.

Return Value

true if the attribute is found; otherwise, false. If false, the reader’s position does not change.

XmlTextReader::MoveToAttribute(int32_t) method

Moves to the attribute with the specified index.

void System::Xml::XmlTextReader::MoveToAttribute(int32_t i) override

Arguments

ParameterTypeDescription
iint32_tThe index of the attribute.

See Also