Skip to main content

XmlReaderSettings Class

NuGet: GHIElectronics.TinyCLR.System.Xml
Assembly: GHIElectronics.TinyCLR.System.Xml
Namespace: System.Xml

Settings bag passed to XmlReader.Create(Stream, XmlReaderSettings). Mirrors the .NET BCL type.

public class XmlReaderSettings

Constructors

XmlReaderSettings()

public XmlReaderSettings()

Initializes a new instance of the XmlReaderSettings class.

Properties

NameTable

public XmlNameTable NameTable { get; set; }

The name table used by the reader. Not wrapped; always returns null.

LineNumberOffset

public int LineNumberOffset { get; set; }

The starting line number reported by the reader.

LinePositionOffset

public int LinePositionOffset { get; set; }

The starting line position reported by the reader.

ConformanceLevel

public ConformanceLevel ConformanceLevel { get; set; }

The level of conformance the reader enforces.

CheckCharacters

public bool CheckCharacters { get; set; }

Indicates whether the reader checks that characters are legal XML.

ValidationType

public ValidationType ValidationType { get; set; }

The type of validation the reader performs.

IgnoreWhitespace

public bool IgnoreWhitespace { get; set; }

Indicates whether to ignore insignificant whitespace.

IgnoreProcessingInstructions

public bool IgnoreProcessingInstructions { get; set; }

Indicates whether to ignore processing instructions.

IgnoreComments

public bool IgnoreComments { get; set; }

Indicates whether to ignore comments.

CloseInput

public bool CloseInput { get; set; }

Indicates whether to close the underlying input when the reader is closed.

Methods

Reset()

public void Reset()

Resets the settings to their default values.

Clone()

public XmlReaderSettings Clone()

Returns a copy of this settings object.

Returns XmlReaderSettings