SimileXMLv3

This is the home page for SimileXMLv3.

SimileXMLv3 is intended as a bog-standard XML representation of Simile models, with a direct, one-to-one relationship between the parts of the Prolog clauses and the XML elements and attributes.  

The aim is to provide a robust XML-based language which can provide guaranteed conversion in either direction (including round-tripping).   This aim can be met with more profound changes to the syntax or underlying data model, but this would require more work to come up with the new design, and to ensure that it works under all circumstances.

XML Schema

The SimileXMLv3 Schema page is here.

 

XSugar Ruleset

The XSugar rule-set for converting between Simile Prolog and SimileXMLv3 is here.

 

AttachmentSize
Binary Data SimileXMLv3.xsd23.58 KB
Binary Data SimileProlog_SimileXMLv3.xsg8.35 KB

SimileProlog-SimileXMLv3 conversion using XSugar

This page contains the XSugar rule-set for converting between Simile Prolog and SimileXMLv3, as well as notes on its development and use.

Files

The following files are attached.  

SimileProlog_SimileXMLv3.xsg

This is the XSugar rule-set.

LINTUL.pl

This is the Prolog for the LINTUL model as exported from Simile.

LINTUL.xml

This is the XML generated by XSugar when it appliesthe above rule set to the above Prolog file.

Using XSugar

Install XSugar, then issue the following comamnd at the command line:

exec java -jar xsugar-all.jar SimileProlog_SimileXMLv3.xsg LINTUL.pl > LINTUL.xml

AttachmentSize
Binary Data SimileProlog_SimileXMLv3.xsg20.25 KB
Plain text icon LINTUL.pl30.37 KB
File LINTUL.xml65.97 KB

SimileXMLv3 Schema

This page contains the SimileXMLv3 Schema, plus information on validation etc.