ObjectXsd

You can use this function for Optiva Workflows.

Purpose

Returns an XML schema (XSD) for an object. To return XML data, see ObjectXml.

Syntax


Dim variable As String = ObjectXsd(Symbol, KeyStr, Details, languageCodes)

Arguments

Part Type Description
Symbol String Optiva symbol
KeyStr String Object key code
Details String Object details, such as INGR (ingredients) or PARAM (parameters).
languageCodes String Optional. If you use ObjectXml to generate XML files in different languages, then specify the semi-colon delimited list of language codes. The XSD contains the language nodes that are generated if you call ObjectXML with these languages.

Example

This action creates a schema for the current symbol and object combination. This example is for a formula.


Dim sXn2 As String = ObjectXsd(objectSymbol, objectKey, "HEADER;TPALL")
MessageList(sXn2)

You must start the script with imports System.xml if XML documents are part of it.