Share via


XmlReader.IsStartElement Method (String, String)

Calls the MoveToContent method to test node tags and two properties, the LocalName property and the NamespaceURI property.

Namespace: System.Xml
Assembly: System.Xml (in system.xml.dll)

Syntax

public virtual bool IsStartElement (
         stringlocalname,
         stringns
)

Parameters

  • localname
    The string to match against the LocalName property of the element found.
  • ns
    The string to match against the NamespaceURI property of the element found.

Return Value

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

Remarks

Calls MoveToContent and tests to find out if the current content node is a start tag or empty element tag. This method also tests to find out if the LocalName and NamespaceURI properties of the element found match the given strings.

Version Information

Available in the .NET Micro Framework versions 2.5, 3.0, 4.0, and 4.1.

See Also

Reference

XmlReader Class
XmlReader Members
System.Xml Namespace