Class XmlReaderUtilityExtensions
Extension methods for the XmlReaderUtility class.
Inheritance
Namespace: Cuemon.Xml
Assembly: Cuemon.Xml.dll
Syntax
public static class XmlReaderUtilityExtensions
Methods
| Improve this DocChunk(XmlReader)
Creates and returns a chunked sequence of System.Xml.XmlReader objects with a maximum of 128 XML node elements located on a depth of 1.
Declaration
public static IEnumerable<XmlReader> Chunk(this XmlReader reader)
Parameters
Type | Name | Description |
---|---|---|
System.Xml.XmlReader | reader | The System.Xml.XmlReader object that contains the XML data to chunk into smaller System.Xml.XmlReader objects for a batch run or similar. |
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<System.Xml.XmlReader> | An sequence of System.Xml.XmlReader objects that contains no more than 128 XML node elements from the |
Chunk(XmlReader, Int32, Action<XmlWriterSettings>)
Creates and returns a chunked sequence of System.Xml.XmlReader objects with a maximum of the specified size
of XML node elements located on a depth of 1.
Declaration
public static IEnumerable<XmlReader> Chunk(this XmlReader reader, int size, Action<XmlWriterSettings> setup = null)
Parameters
Type | Name | Description |
---|---|---|
System.Xml.XmlReader | reader | The System.Xml.XmlReader object that contains the XML data to chunk into smaller System.Xml.XmlReader objects for a batch run or similar. |
System.Int32 | size | The amount of XML node elements allowed per System.Xml.XmlReader object. Default is 128 XML node element. |
System.Action<System.Xml.XmlWriterSettings> | setup | The System.Xml.XmlWriterSettings which need to be configured. |
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<System.Xml.XmlReader> | An sequence of System.Xml.XmlReader objects that contains no more than the specified |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
System.ArgumentException | The System.Xml.XmlReader.Read() method of the |