Table of Contents

Class XmlSerializerOptions

Namespace
Cuemon.Xml.Serialization
Assembly
Cuemon.Xml.dll

Configuration options for XmlSerializer.

public class XmlSerializerOptions
Inheritance
Object
XmlSerializerOptions

Constructors

XmlSerializerOptions()

Initializes a new instance of the XmlSerializerOptions class.

public XmlSerializerOptions()

Remarks

The following table shows the initial property values for an instance of DefaultXmlConverter.

PropertyInitial Value
Readernew XmlWriterSettings() { IndentChars = Alphanumeric.Tab };
Writernew XmlReaderSettings { DtdProcessing = DtdProcessing.Ignore };
ConvertersSystem.Collections.Generic.List<T>
RootNamenull

Properties

Converters

Gets a XmlConverter collection that will be used during serialization.

public IList<XmlConverter> Converters { get; }

Property Value

IList<XmlConverter>

The converters that will be used during serialization.

Reader

Gets or sets the System.Xml.XmlReaderSettings to support the XmlSerializer.

public XmlReaderSettings Reader { get; set; }

Property Value

XmlReaderSettings

A System.Xml.XmlReaderSettings instance that specifies a set of features to support the XmlSerializer object.

RootName

Gets or sets the name of the XML root element.

public XmlQualifiedEntity RootName { get; set; }

Property Value

XmlQualifiedEntity

The name of the XML root element.

Writer

Gets or sets the System.Xml.XmlWriterSettings to support the XmlSerializer.

public XmlWriterSettings Writer { get; set; }

Property Value

XmlWriterSettings

A System.Xml.XmlWriterSettings instance that specifies a set of features to support the XmlSerializer object.