XMLOptions
- Mise à jour2025-07-21
- Temps de lecture : 2 minute(s)
XMLOptions
Use these constants to specify the GenerationOptions parameter of the PropertyObject.GetXML method.
- XMLOption_AllowInvalidObjects –(Value 0x1000) Pass this option to PropertyObject.GetXML to allow serialization of invalid instances of TestStand enumerator data types. Pass this option to PropertyObject.SetXML to allow deserialization of invalid instances of TestStand enumerator data types.
- XMLOption_ExcludeAliasObjects –(Value: 0x100) Instructs TestStand to exclude alias subproperty objects in the XML stream. By default, the PropertyObject.GetXML method includes alias subproperty objects in the XML stream.
- XMLOption_ExcludeArrayPrototypes –(Value: 0x200) Excludes the default prototype definition for array element properties.
- XMLOption_ExcludeAttributes –(Value: 0x400 | 0x800) Excludes PropertyObject attributes and type attributes from the generated XML.
- XMLOption_ExcludeComments –(Value: 0x1) Excludes PropertyObject comments from the generated XML.
- XMLOption_ExcludeEmptyObjects –(Value: 0x8) Excludes objects without values from the generated XML.
- XMLOption_ExcludeFlags –(Value: 0x2) Excludes the flag related attributes from the generated XML.
- XMLOption_ExcludeVersionInfo –(Value: 0x4) Excludes version information from the header of the generated XML.
- XMLOption_NoCRLF –(Value: 0x40) Instructs TestStand to not automatically format the generated XML by adding LF or CRLF characters.
- XMLOption_NoIndentation –(Value: 0x20) Instructs TestStand to not automatically format the generated XML by indenting new lines with tab characters.
- XMLOption_NoOptions –(Value: 0x0) No options.
- XMLOption_UseCRLFInsteadOfLF –(Value: 0x80) Instructs TestStand to use CRLF characters instead of adding LF characters when automatically formatting generated XML.
- XMLOption_UseValueFormatIfDefined –(Value: 0x10) Instructs TestStand to use the formatString of each numeric object when the formatString parameter is not empty. If this flag is not set or the format string of the numeric object is empty, the PropertyObject.GetXML method uses the formatString parameter for the formatting, or "%.17g" if the formatString parameter is empty. The default for double-precision, 64-bit floating-point values is %.17g , %d for signed 64-bit integer values, and %u for unsigned 64-bit integer values.