Sample: Adding XSDs to the job file

You can hard-code the XSD schema files into the job file in the report template. During run-time, Optiva Workflow can add schemas for the report. This example adds the Formula xsd file.

In this example, because the location of the template file has not been set up in the File Location form, it is hard coded into the workflow.

Dim templ as New XmlDocument()
templ.Load("http://localhost/FsWebReports/Source/
FsWebReportTemplate.xml")
Dim schemas as XmlNode
schemas = templ.SelectSingleNode("//SchemaList")
Dim schema as XmlNode = templ.CreateElement("Schema")
schema.InnerText = "Formula.XSD"
schemas.AppendChild(schema)