VB6 XmlSerializationContext
In This Topic
XmlSerializationContext Class
The XmlSerializationContext class controls the way in which XML is serialized and de-serialized. It allows aspects of the validation to be changed, and the contents of the generated XML to be controlled.
If you not explicitly create an XmlSerializationContext object and pass it to the ToXml and FromXml functions, then a static instance of a XmlSerializationContext is used (accessible via XmlSerializationContext.Default).
|
|
Members |
Description |
|
|
|
IgnoreUnknownAttributes |
Cause the parser to ignore attributes that are not present in the schema. Default = false. |
|
|
|
IgnoreUnknownElements |
Cause the parser to ignore elements that are not present in the schema. Default = false. |
|
|
|
IgnoreMissingMandatoryElements |
Causes the parser to ignore mandatory elements that are missing in the XML document. Default = false. |
|
|
|
IgnoreMissingChoice |
Causes the parser to ignore empty choices (ones that should contain a valid element). Default = false. |
|
|
|
IgnoreInvalidCollectionCounts |
Causes the parser to accept collections with the wrong number of elements in them. Default = false. |
|
|
|
IgnoreNamespaces |
Causes the parser to accept items with the wrong namespace. Default = false. |
|
|
|
NoOptionalAttributeDefaultOutput |
Causes the parser to omit optional attribute default values from output XML document. Default = false. |
|
|
|
DefaultNamespaceURI |
Specifies the default namespace used in the output. |
|
|
|
NamespaceAliases |
A collection of name value pairs, containing a namespace URI and namespace Alias. |
|
|
|
AdditionalRootAttributes |
Allows additional root elements to be specified. |
|
|
|
ProcessingInstructions |
Allows processing instructions to be added to the XML document. |
|
|
|
InLineSchema |
Allows a root level schema to be specified. |
|
|
|
StripCDATA |
Not Implemented. |
|
|
|
WriteTypeAttribute |
Determines if xs:type attribute is written out for derived elements. Default = true. |
|
|
|
|
|
|
|
|
Default |
The default XmlSerializationContext, used when one is not explicitly specified |
|