Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
xml_script [2011/04/22 22:31]
hermann [Overview]
xml_script [2013/07/30 23:59] (current)
admin [Reference]
Line 1: Line 1:
-====== ​XML Script ======+====== ​EGOML Script ======
  
 ===== Overview ===== ===== Overview =====
  
-Any model can be saved as a XML document. The resulting file uses the extension "​.xml"​.+Any model can be saved as a EGOML document. The resulting file uses the extension "​.egoml"​((The old extension "​.xml" ​still supported for backward compatibility.)).
  
-Below, it is an example of a XML script used to load a map, calculate an image convolution and save the result:+Below, it is an example of a EGOML script used to load a map, calculate an image convolution and save the result:
  
-<file xml apply-edge-detection-convolution.xml>+<file xml apply-edge-detection-convolution.egoml>
 <?xml version="​1.0"​ standalone="​yes"​ ?>  <?xml version="​1.0"​ standalone="​yes"​ ?> 
 <​script>​ <​script>​
Line 61: Line 61:
  
 <note tip> <note tip>
-Using the XML format, it is possible ​to write incomplete ​script ​having functors whose input and output ports are neither bound nor edited. This allows saving ​models in the first development stages.+EGOML/XML format ​used to be the only format that could accept ​incomplete ​scripts, scripts ​having functors whose input and output ports are neither bound nor edited. However, since version 2.0, it is possible to save and load an incomplete [[EGO Script]] as well. This feature is useful to save models in the first development stages. ​
 </​note>​ </​note>​
  
 ===== Reference ===== ===== Reference =====
  
-The XML document ​is written according to the following DTD ((A good introduction to the DTD description syntax can be found at http://​skew.org/​xml/​tutorial.)):​+The EGOML file is a XML document written according to the following DTD ((A good introduction to the DTD description syntax can be found at http://​skew.org/​xml/​tutorial.)):​
  
 <code dtd> <code dtd>
Line 104: Line 104:
 ]> ]>
 </​code>​ </​code>​
- 
-The resulting document is not formated using tabs, spaces or newlines. Those characters are written only when they are inside the definition content, not in the content boundaries. 
  
 The property keys are always fully expanded. There is no property alias as in the [[EGO Script]] format. The property keys are always fully expanded. There is no property alias as in the [[EGO Script]] format.