Extract_XML_Schema_Name function
Description
(Introduced in OpenInsight 4.1.3). Extracts the name of an XML schema file, when passed the XML file.
Note: When the XML Publisher is used to export an OpenInsight table to XML, an XML schema file is created along with the XML file. This function extracts the fully qualified path name of the XML schema file.
Syntax
Extract_XML_Schema_Name(XML_File_Path, XML_Rec)
Parameters
The Extract_XML_Schema_Name function has the following parameters.
Parameter | Description | |
---|---|---|
XML_File_Path | The fully qualified file name (including the path) of the XML file. | |
XML_Rec | A variable containing the contents of the XML file after it has been read into memory. See the example below. |
See Also
Example
/* After the Extract_XML_Schema_Name() function is called, the variable xml_schema_name will contain the value C:\orders_schema.xsd. */ declare function extract_XML_Schema_Name filename = 'C:\ORDERS.XML' OSRead filerec from filename then xml_schema_name = extract_XML_Schema_Name( filename, filerec) end