XdmWriterSettings.Encoding PropertyXdmWriterSettings.Encoding PropertyXdmWriterSettings::Encoding Property
- Namespace: XmlPrime.SerializationXmlPrime.SerializationXmlPrime.Serialization
- Assembly: XmlPrime (in XmlPrime.dll)
Exceptions
| Exception | Condition |
| XdmExceptionXdmExceptionXdmException | An SEPM0016 error may be raised if an invalid encoding setting is attempted. |
Remarks
This property corresponds to the encoding serialization parameter, which
specifies the encoding to be used for outputting the instance of the data model.
The following encodings are supported (these values are case-insensitive):
IBM037IBM500IBM273IBM277IBM280IBM284IBM285IBM297IBM871IBM1047iso-8859-1iso-8859-2iso-8859-3iso-8859-4iso-8859-5iso-8859-6iso-8859-7iso-8859-8iso-8859-9iso-8859-13iso-8859-15us-asciiutf-8utf-16utf-16BEutf-16LEutf-32utf-32BEutf-32LEGB18030GB18030unicodeFFFEWindows-1252
If this property is set to an unsupported value and MethodMethodMethod is not set to
CanonicalOutputMethodCanonicalOutputMethodCanonicalOutputMethod then a SESU0007 XdmExceptionXdmExceptionXdmException is raised if
serialization is attempted.
This property is ignored when MethodMethodMethod is set to CanonicalOutputMethodCanonicalOutputMethodCanonicalOutputMethod. When serializing to a TextWriterTextWriterTextWriter the encoding specified by the text writer overrides this property.
