Modelica Document Type Definition (DTD)


DTD for Modelica XML programs: modelica.dtd


Validation of XML files

All the files *.xml *.dtd were created/validated using XML SPY 5.0
Furthermore we validated the XML files using the following validator

XML Validator Paste your Modelica XML URL into the "URI:" input box and press "Validate". Make sure you specify inside your XML file the pointer to modelica.dtd: http://www.ida.liu.se/~adrpo/modelica/xml/modlica.dtd
SecondOrderSystem.xml [Validation] "Document validates OK" at the end
GenMicroCircuit.xml [Validation] "Document validates OK" at the end
GenMicroCircuit-invalid.xml [Validation] "error (1201): required attribute missing: definition (missing "restriction")" at the begining
GenMicroCircuit-invalid2.xml [Validation] "error (1201): required attribute missing: definition (missing "restriction")" (... more errors) at the begining

Other XML validators can be found here:
When using Internet Explorer you should right click & "Save Target As" when you want to save modelica.dtd on your computer.
The XML files can be displayed in Internet Explorer if they can be parsed without error.