guides:programming:programmers_reference_manual:extract_xml_schema_name

Extract_XML_Schema_Name function

(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.

Extract_XML_Schema_Name(XML_File_Path, XML_Rec)

The Extract_XML_Schema_Name function has the following parameters.

ParameterDescription
XML_File_PathThe fully qualified file name (including the path) of the XML file.
XML_RecA variable containing the contents of the XML file after it has been read into memory. See the example below.
/*

   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
 
 
  • guides/programming/programmers_reference_manual/extract_xml_schema_name.txt
  • Last modified: 2024/06/19 20:20
  • by 127.0.0.1