Class XmlReaderExtensions
Inheritance
System.Object
XmlReaderExtensions
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Experior.Core
Assembly: Experior.Core.dll
Syntax
public static class XmlReaderExtensions
Methods
GetElementValueOrDefault(XmlReader, String, String)
Declaration
public static string GetElementValueOrDefault(this XmlReader reader, string matchName, string defaultValue)
Parameters
Type | Name | Description |
---|---|---|
System.Xml.XmlReader | reader | |
System.String | matchName | |
System.String | defaultValue |
Returns
Type | Description |
---|---|
System.String |
StreamElements(XmlReader, String)
Declaration
public static IEnumerable<XElement> StreamElements(this XmlReader reader, string matchName)
Parameters
Type | Name | Description |
---|---|---|
System.Xml.XmlReader | reader | |
System.String | matchName |
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<System.Xml.Linq.XElement> |