Question: How can I write data from a 1C:Enterprise info base to an XML file for data exchange purposes? How can I read data to a 1C:Enterprise info base from an XML file?
Answer: Below is an example on how to write data from a 1C:Enterprise info base to an xml file. In the example, how to write data from a form table to xml file is shown, along with the contents of the resulting xml file.
When reading data from an xml file, you can use the standard function of the SSL (standard subsystems library) “ReadXMLToTable”, which is situated in the “Common” common module of configurations which are using SSL. Usage example is shown in the screenshot above, “ReadFromXML” procedure.
Both the sample data processor from which the screenshot is taken and the sample xml file are included as attachments to the this article.