Liquid XML Data Binder 2021
Liquid XML Data Binder (C++, Java, VB6) / Reference / C++ / Reference / C++ CSerializationContext
In This Topic
    C++ CSerializationContext
    In This Topic
    LtXmlLib19::CSerializationContext Class
    The CSerializationContext 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 do not explicitly create an CSerializationContext object and pass it to the ToXml and FromXml functions, then a static instance of a CSerializationContext is used (accessible via CSerializationContext::GetDefaultContext()).
    Base Classes: CXmlObjectBase
      Members Description  
        GetAdditionalRootAttributes Allows additional root elements to be specified.  
        GetDefaultContext The default CSerializationContext, used when one is not explicitly specified.  
        GetDefaultNamespaceURI Specifies the default namespace used in the output.  
        SetDefaultNamespaceURI  
        GetFIContext Allow Fast Infoset specific items to be set.  
        GetIgnoreInvalidCollectionCounts Causes the parser to accept collections with the wrong number of elements in them. Default = false.  
        SetIgnoreInvalidCollectionCounts  
        GetIgnoreMissingChoice Causes the parser to ignore empty choices (ones that should contain a valid element). Default = false.  
        SetIgnoreMissingChoice  
        GetIgnoreMissingMandatoryElements Causes the parser to ignore mandatory elements that are missing in the XML document. Default = false.  
        SetIgnoreMissingMandatoryElements  
        GetIgnoreNamespaces Causes the parser to accept items with the wrong namespace. Default = false.  
        SetIgnoreNamespaces  
        GetIgnoreUnknownAttributes Cause the parser to ignore attributes that are not present in the schema. Default = false.  
        SetIgnoreUnknownAttributes  
        GetIgnoreUnknownElements Cause the parser to ignore elements that are not present in the schema. Default = false.  
        SetIgnoreUnknownElements  
        GetInLineSchema Allows a root level schema to be specified.  
        SetInLineSchema  
        GetJsonContext Allow JSON specific items to be set.  
        GetNamespaceAliases A collection of name value pairs, containing a namespace URI and namespace Alias.  
        GetNoOptionalAttributeDefaultOutput Causes the writer to omit optional attribute default values from output XML document. Default = false.  
        SetNoOptionalAttributeDefaultOutput  
        GetProcessingInstructions Allows processing instructions to be added to the XML document.  
        GetStripCDATA Determines if CDATA is removed from incoming data. Default = true.  
        SetStripCDATA  
        GetWriteDefaultElementValues Causes the writer to write default element values into the output XML document. Default = false.  
        SetWriteDefaultElementValues  
        GetWriteTypeAttribute Determines if xs:type attribute is written out for derived elements. Default = true.  
        SetWriteTypeAttribute