CrystalXmlSettings.OptionFlags
Namespace: SnowBank.Data.Xml · enum
Implements: IComparable, ISpanFormattable, IFormattable, IConvertible
Bit layout of CrystalXmlSettings
Fields
EmptyElement_Paired
EmptyElement_Paired = 16
Write an empty element as an open and close tag
EmptyElement_SelfClosing
EmptyElement_SelfClosing = 0
Write an empty element as a self-closing tag (the default)
Indented
Indented = 4
Indent the output across multiple lines instead of writing it compact on one line (see Indented)
NewLine_Crlf
NewLine_Crlf = 0
Structural line ending is \r\n (the default); consulted only when Indented is set
NewLine_Lf
NewLine_Lf = 8
Structural line ending is \n; consulted only when Indented is set
NewLine_Mask
NewLine_Mask = 8
Bit that holds the structural line ending
None
None = 0
All options at their default (the general profile, compact, self-closing, no declaration)
OmitNamespaces
OmitNamespaces = 2
Strip namespaces and prefixes from the DataContract output (see OmitNamespaces)
Profile_DataContract
Profile_DataContract = 1
DataContract profile: the format DataContractSerializer writes
Profile_General
Profile_General = 0
General profile: the standard, neutral XML format
Profile_Mask
Profile_Mask = 1
Bits that hold the profile
ShowNullMembers
ShowNullMembers = 64
Write a member whose value is null instead of omitting it (see ShowNullMembers)
WriteXmlDeclaration
WriteXmlDeclaration = 32
Write the <?xml ...?> declaration at the start of the document