Added by Jeroen Reijn, last edited by Jasha Joachimsthal on Nov 28, 2007
()
General information
The datamodel consists of an XML schema defining the XML structure of the document. RelaxNG is currently not supported.
Supported XML Schema elements
The schema elements supported by the editor is a subset of the W3C specifications. The following elements are currently supported (xs: is the http://www.w3.org/2001/XMLSchema namespace:
- xs:attribute
- xs:attributeGroup
- xs:element
- xs:group
- xs:sequence
- xs:simpleType
- local and global definitions
- Supported base types:
- xs:string
- xs:boolean
- xs:int
- xs:integer
- xs:date
- xs:restriction, supported :
- xs:enumeration
- xs:minLength and xs:maxLength
- xs:minInclusive and xs:maxInclusive
- the 'use' attribute
See W3C's XML Schema Specification for details about the exact syntax of schema's.
Example :
<?xml version="1.0" encoding="UTF-8"?> <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"> <xs:element name="root"> <xs:complexType> <xs:sequence> <xs:element name="title" type="xs:string"/> <xs:element name="body" type="xs:string"/> </xs:sequence> </xs:complexType> </xs:element> </xs:schema>