XmlDtdProcessing Enum

Summary

Specifies how will an XmlReader handle DTDs in the XML document.
Namespace
Cake.Common.Xml
Interfaces
  • IComparable
  • IFormattable
  • IConvertible
Base Types
  • object
  • ValueType
  • Enum
graph BT Type-->Base0["Enum"] Base0-->Base1["ValueType"] Base1-->Base2["object"] Type-.->Interface0["IComparable"] Type-.->Interface1["IFormattable"] Type-.->Interface2["IConvertible"] Type["XmlDtdProcessing"] class Type type-node

Syntax

public enum XmlDtdProcessing

Fields

Name Constant Value Summary
Ignore 1
The DTD will be ignored. Any reference to a general entity in the XML document will cause an exception (except for the predefined entities < > & " and '). The DocumentType node will not be reported.
static
Parse 2
The DTD will be parsed and fully processed (entities expanded, default attributes added etc.)
static
Prohibit 0
The XmlReader will throw an exception when it finds a 'DOCTYPE' markup.
static

Extension Methods

Name Value Summary
Dump<XmlDtdProcessing>() string
Get a basic string representation of specified object.
Requires the Cake.Incubator addin
IsIn<XmlDtdProcessing>(XmlDtdProcessing[]) bool
Checks if the source is contained in a list
Requires the Cake.Incubator addin
ThrowIfNull<XmlDtdProcessing>(string) T
Throws a System.ArgumentNullException if the value is null, otherwise returns the value
Requires the Cake.Incubator addin
ThrowIfNull<XmlDtdProcessing>(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