SaveXMLSchema

You can use this function for Optiva Workflows.

Unsecured mode only

SaveXmlSchema is supported for unsecured scripting.

If you call this method from secured mode, a permission violation is thrown. This is by design, as this method is too dangerous to support in “secured” mode.

Purpose

The SaveXMLSchema function writes the .xsd file that describes the xml for the current object. This function is different from ObjectXSD.

ObjectXSD fetches the XSD for a particular object and the requested details. This works for a single object.

SaveXMLSchema is made to work with the multi-object XML files that WebReports uses. You supply it with a WebReport XML file path and a path to save an XSD file to.

Then, SaveXMLSchema reads the XML file, looking for the WebReport-specific XSD nodes that are listed under the /fsxml/report/SchemaList/Schema path. It then creates an XSD which has all of the structure from the XSD nodes.

Syntax


SaveXMLSchema(xmlFile, outFile) 

Arguments

Part Description
xmlFile Name of the XML file that is used to generate the schema.
outFile Full path to the schema file to be generated.