Share via


IsStartElement Method (String, String)

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

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

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

Syntax

'Declaration
Public Overridable Function IsStartElement ( _
    localname As String, _
    ns As String _
) As Boolean
public virtual bool IsStartElement(
    string localname,
    string ns
)
public:
virtual bool IsStartElement(
    String^ localname, 
    String^ ns
)
abstract IsStartElement : 
        localname:string * 
        ns:string -> bool 
override IsStartElement : 
        localname:string * 
        ns:string -> bool 
public function IsStartElement(
    localname : String, 
    ns : String
) : boolean

Parameters

  • localname
    Type: System. . :: . .String
    The string to match against the LocalName property of the element found.

Return Value

Type: System. . :: . .Boolean
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 properties of the element do not match the specified strings.

Remarks

This method skips white space, comments, and processing instructions until the reader is positioned on a content node. The method then tests if the current node is an element.

.NET Framework Security

See Also

Reference

XmlReader Class

IsStartElement Overload

System.Xml Namespace