XmlTransformationSettings Class

Summary

Contains settings for XmlTransformation
Namespace
Cake.Common.Xml
Base Types
  • object
graph BT Type-->Base0["object"] Type["XmlTransformationSettings"] class Type type-node

Syntax

public sealed class XmlTransformationSettings

Constructors

Name Summary
XmlTransformationSettings() Initializes a new instance of the XmlTransformationSettings class.

Properties

Name Value Summary
CheckCharacters bool
Gets or sets a value indicating whether the XML writer should check to ensure that all characters in the document conform to the "2.2 Characters" section of the W3C XML 1.0 Recommendation.
ConformanceLevel ConformanceLevel
Gets or sets a value indicating level of conformance that the XmlWriter checks the XML output for.
DoNotEscapeUriAttributes bool
Gets or sets a value indicating whether the XmlWriter does not escape URI attributes.
Encoding Encoding
Gets or sets the type of text encoding to use.
Indent bool
Gets or sets a value indicating whether to indent elements.
IndentChars string
Gets or sets the character string to use when indenting. This setting is used when the Indent property is set to true.
NamespaceHandling NamespaceHandling
Gets or sets a value that indicates whether the XmlWriter should remove duplicate namespace declarations when writing XML content. The default behavior is for the writer to output all namespace declarations that are present in the writer's namespace resolver.
NewLineChars string
Gets or sets the character string to use for line breaks.
NewLineHandling NewLineHandling
Gets or sets a value indicating whether to normalize line breaks in the output.
NewLineOnAttributes bool
Gets or sets a value indicating whether to write attributes on a new line.
OmitXmlDeclaration bool
Gets or sets a value indicating whether to omit an XML declaration.
Overwrite bool
Gets or sets a value indicating whether overwriting existing file is permitted
WriteEndDocumentOnClose bool
Gets or sets a value indicating whether the XmlWriter will add closing tags to all unclosed element tags when the Close method is called

Extension Methods

Name Value Summary
Dump<XmlTransformationSettings>() string
Get a basic string representation of specified object.
Requires the Cake.Incubator addin
IsIn<XmlTransformationSettings>(XmlTransformationSettings[]) bool
Checks if the source is contained in a list
Requires the Cake.Incubator addin
NotNull<XmlTransformationSettings>(string) void
Throws an exception if the specified parameter's value is null.
Requires the Cake.Issues addin
NotNull<XmlTransformationSettings>(string) void
Throws an exception if the specified parameter's value is null.
Requires the Cake.Ftp addin
ThrowIfNull<XmlTransformationSettings>(string) T
Throws a System.ArgumentNullException if the value is null, otherwise returns the value
Requires the Cake.Incubator addin
ThrowIfNull<XmlTransformationSettings>(string, string) T
Throws a System.ArgumentNullException with a specific message if the value is null, otherwise returns the value
Requires the Cake.Incubator addin