Early Preview

This is currently very much a preview. Please feel free to try things out, but don't be upset if anything is not yet working. Feedback is welcome over on our GitHub Dicussions page.

class System.​Xml.​XmlReaderSettings

Assembly: System.Xml.ReaderWriter

Inheritance: object → XmlReaderSettings

Specifies a set of features to support on the <see cref="T:System.Xml.XmlReader" /> object created by the <see cref="Overload:System.Xml.XmlReader.Create" /> method.

Properties

public bool
Async
Gets or sets whether asynchronous <see cref="T:System.Xml.XmlReader" /> methods can be used on a particular <see cref="T:System.Xml.XmlReader" /> instance.
public bool
CheckCharacters
Gets or sets a value indicating whether to do character checking.
public bool
CloseInput
Gets or sets a value indicating whether the underlying stream or <see cref="T:System.IO.TextReader" /> should be closed when the reader is closed.
ConformanceLevel
Gets or sets the level of conformance with which the <see cref="T:System.Xml.XmlReader" /> will comply.
public DtdProcessing
DtdProcessing
Gets or sets a value that determines the processing of DTDs.
public bool
IgnoreComments
Gets or sets a value indicating whether to ignore comments.
public bool
IgnoreProcessingInstructions
Gets or sets a value indicating whether to ignore processing instructions.
public bool
IgnoreWhitespace
Gets or sets a value indicating whether to ignore insignificant white space.
public int
LineNumberOffset
Gets or sets line number offset of the <see cref="T:System.Xml.XmlReader" /> object.
public int
LinePositionOffset
Gets or sets line position offset of the <see cref="T:System.Xml.XmlReader" /> object.
public long
MaxCharactersFromEntities
Gets or sets a value indicating the maximum allowable number of characters in a document that result from expanding entities.
public long
MaxCharactersInDocument
Gets or sets a value indicating the maximum allowable number of characters in an XML document. A zero (0) value means no limits on the size of the XML document. A non-zero value specifies the maximum size, in characters.
public XmlNameTable
NameTable
Gets or sets the <see cref="T:System.Xml.XmlNameTable" /> used for atomized string comparisons.
public bool
ProhibitDtd
Gets or sets a value indicating whether to prohibit document type definition (DTD) processing. This property is obsolete. Use <see cref="P:System.Xml.XmlTextReader.DtdProcessing" /> instead.
public XmlSchemaSet
Schemas
Gets or sets the <see cref="T:System.Xml.Schema.XmlSchemaSet" /> to use when performing schema validation.
ValidationFlags
Gets or sets a value indicating the schema validation settings. This setting applies to <see cref="T:System.Xml.XmlReader" /> objects that validate schemas ( <see cref="P:System.Xml.XmlReaderSettings.ValidationType" /> property set to <see langword="ValidationType.Schema" /> ).
ValidationType
Gets or sets a value indicating whether the <see cref="T:System.Xml.XmlReader" /> will perform validation or type assignment when reading.
public XmlResolver
XmlResolver
Sets the <see cref="T:System.Xml.XmlResolver" /> used to access external documents.

Methods

Clone​()
Creates a copy of the <see cref="T:System.Xml.XmlReaderSettings" /> instance.
Returns The cloned <see cref="T:System.Xml.XmlReaderSettings" /> object.
public void
Reset​()
Resets the members of the settings class to their default values.
public bool
Equals​(object obj)
Inherited from object
protected void
Finalize​()
Inherited from object
public int
GetHashCode​()
Inherited from object
public Type
GetType​()
Inherited from object
protected object
MemberwiseClone​()
Inherited from object
public string
ToString​()
Inherited from object