ReadStartElement Method (String, String)
Collapse the table of content
Expand the table of content

XmlReader.ReadStartElement Method (String, String)

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Checks that the current content node is an element with the given LocalName and NamespaceURI and advances the reader to the next node.

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

public virtual void ReadStartElement(
	string localname,
	string ns
)

Parameters

localname
Type: System.String
The local name of the element.
ns
Type: System.String
The namespace URI of the element.

ExceptionCondition
XmlException

IsStartElement returns false, or the LocalName and NamespaceURI properties of the element found do not match the given arguments.

A call to this method corresponds to a call to IsStartElement followed by a call to Read.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2016 Microsoft