System::Xml::XmlReader::IsStartElement метод

XmlReader::IsStartElement() method

Вызывает XmlReader::MoveToContent и проверяет, является ли текущий узел содержимого стартовым тегом или пустым элементом.

virtual bool System::Xml::XmlReader::IsStartElement()

ReturnValue

true if XmlReader::MoveToContent finds a start tag or empty element tag; false if a node type other than XmlNodeType::Element was found.

См. также

XmlReader::IsStartElement(String, String) method

Вызывает XmlReader::MoveToContent и проверяет, является ли текущий узел содержимого стартовым тегом или пустым элементом, а также совпадают ли значения XmlReader::get_LocalName и XmlReader::get_NamespaceURI найденного элемента с заданными строками.

virtual bool System::Xml::XmlReader::IsStartElement(String localname, String ns)
ПараметрТипОписание
localnameStringСтрока для сравнения со значением LocalName найденного элемента.
nsStringСтрока для сравнения со значением NamespaceURI найденного элемента.

ReturnValue

true if the resulting node is an element. false if a node type other than XmlNodeType::Element was found or if the LocalName and NamespaceURI values of the element do not match the specified strings.

См. также

XmlReader::IsStartElement(String) method

Вызывает XmlReader::MoveToContent и проверяет, является ли текущий узел содержимого стартовым тегом или пустым элементом, а также совпадает ли значение XmlReader::get_Name найденного элемента с заданным аргументом.

virtual bool System::Xml::XmlReader::IsStartElement(String name)
ПараметрТипОписание
имяStringСтрока сравнивается со значением Name найденного элемента.

ReturnValue

true if the resulting node is an element and the Name value matches the specified string. false if a node type other than XmlNodeType::Element was found or if the element Name value does not match the specified string.

См. также