-
Notifications
You must be signed in to change notification settings - Fork 2
db.xml specification
<?xml version="1.0" encoding="utf-8"?>
<database>
<website>
<title>webseite</title>
<domain>www.example.com</domain>
<webmaster>Max Mustermann</webmaster>
</website>
<content xml:id="a1285578547" restriction="" visible="true">
<title>Home</title>
<type>html</type>
<author>admin</autor>
<main>home, sweet home</main>
</content>
<content xml:id="a1285578548" restriction="" visible="true">
<title><![CDATA[some title]]></title>
<type>html</type>
<author><![CDATA[someone]]></author>
<main><![CDATA[<h1>Stuff</h1><p>Some stuff.</p>]]></main>
</content>
</database>
Contains static information about the web-project.
Tag names should be self-explanatory, values should be stored as CDATA-elements.
Represents a page.
The xml:id attribute starts with an alphabetic character (atm it’s always ‘a’, for no special reason, just because the xml-specification doesn’t allow integers as ids) which is followed by an unix-timestamp. Attribute “restriction” is not in use right now, but will be used for access control in later versions. The “visible” attribute indicates, if the page is visible (=“true”) for viewers (should also affect the navigation items). Each “content”-tag contains (mostly self-explanatory) items that contain information about the site. Plugin-specific page-content is stored inside the “main”-tag. Every element inside the “content”-tag should be stored as CDATA-element, except for “type”.