Skip to content

[F] getXmlEncoding

function getXmlEncoding(program, type): XmlEncodeData | undefined

Resolve how the given type should be encoded in XML. This will return the default encoding for each types.(e.g. TypeSpec.Xml.Encoding.xmlDateTime for a utcDatetime)

Parameters

ParameterTypeDescription
programProgram
typeModelProperty | Scalar

Returns

XmlEncodeData | undefined