Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

XmlReader.ReadToFollowing Method (String, String)

Note: This method is new in the .NET Framework version 2.0.

Reads until an element with the specified local name and namespace URI is found.

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

public virtual bool ReadToFollowing (
	string localName,
	string namespaceURI
)
public boolean ReadToFollowing (
	String localName, 
	String namespaceURI
)
public function ReadToFollowing (
	localName : String, 
	namespaceURI : String
) : boolean

Parameters

localName

The local name of the element.

namespaceURI

The namespace URI of the element.

Return Value

true if a matching element is found; otherwise false and the XmlReader is in an end of file state.

This method is functionally equivalent executing the following::name XPath expression from the current node. It provides a quick way to find a named element in the XML document. It advances the reader to the next following element that matches the specified name and returns true if a matching element is found.

This method can be called on all node types.

Windows 98, Windows 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.

.NET Framework

Supported in: 2.0

.NET Compact Framework

Supported in: 2.0
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

Show:
© 2014 Microsoft