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)

public:
virtual bool IsStartElement(
	String^ localname, 
	String^ ns
)

Parameters

localname
Type: System..::..String
The string to match against the LocalName property of the element found.
ns
Type: System..::..String
The string to match against the NamespaceURI 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.

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.

Show: