MoveToAttribute()

XmlReader::MoveToAttribute(String) method

When overridden in a derived class, moves to the attribute with the specified XmlReader::get_Name value.

virtual bool System::Xml::XmlReader::MoveToAttribute(String name)=0

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.

XmlReader::MoveToAttribute(String, String) method

When overridden in a derived class, moves to the attribute with the specified XmlReader::get_LocalName and XmlReader::get_NamespaceURI values.

virtual bool System::Xml::XmlReader::MoveToAttribute(String name, String ns)=0

Arguments

ParameterTypeDescription
nameStringThe local name of the attribute.
nsStringThe namespace URI of the attribute.

Return Value

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

XmlReader::MoveToAttribute(int32_t) method

When overridden in a derived class, moves to the attribute with the specified index.

virtual void System::Xml::XmlReader::MoveToAttribute(int32_t i)

Arguments

ParameterTypeDescription
iint32_tThe index of the attribute.

See Also