====== Create_XML_XSD_Schema function ====== ==== Description ==== (Introduced in OpenInsight 4.1.3). Creates an XML Schema definition document (.XSD file) from fields in an OpenInsight table. ==== Syntax ==== retval = Create_XML_XSD_Schema(Tablename, Rpt_Fields, Dos_Path, DosFile) ==== Parameters ==== The Create_XML_XSD_Schema function has the following parameters. ^Parameter^Description^ |//TableName//|OpenInsight table to be published as XML| |Rpt_Fields|A value-mark delimited list of dictionary field names to be included in the XML Schema definition document.| |DOS_Path|Unused. Pass null.| |DOSFile|The fully qualified path of the filename of the XML file for which the .XSD file is being created.\\ \\ || ==== Returns ==== The fully qualified path name of the schema file associated with the XML file passed in DOSFile. No error is returned if the schema file is not successfully created. ==== See Also ==== [[extract_xml_schema_name|Extract_XML_Schema_Name()]], [[get_xml_value|Get_XML_Value()]], [[inet_oi_xml|Inet_OI_XML()]], [[xml_importer|XML_Importer()]] ==== Example ==== /* After the Create_XML_XSD_Schema() function is called, the Extract_XML_Schema_Name() function is called, the file C:\orders_schema.xsd will contain the schema definition for the ORDER_NO and ITEM_DESCRIPTIONS_ENTERED fields in the ORDERS table. */ declare function create_xml_xsd_schema tablename = 'ORDERS' rpt_fields = 'ORDER_NO':@vm : 'ITEM_DESCRIPTIONS_ENTERED' dos_path = '' dosfile = 'C:\orders.xml' retval = create_xml_xsd_schema( tablename , rpt_fields , dos_path , dosfile) Sample XSD FileBelow is the contents of the schema file produced by running the example. ORDERS schema created by the OpenInsight Schema Creator. Copyright 2003. All rights reserved.