<w:pages>
<w:page author=" ... " created=" ... " name=" ... " lastModified=" ... " versionNumber" ... ">
<w:properties>
<property name=" ... ">
<value> ... </value>
<value> ... </value>
<value> ... </value>
</property>
<property name=" ... ">
<value> ... </value>
<value> ... </value>
<value> ... </value>
</property>
</w:properties>
<w:attachments>
<attachment name=" ... " fileName=" ... "/>
<attachment name=" ... " fileName=" ... "/>
</w:attachments>
</w:page>
<w:page> ... </w:page>
</w:pages>
you can make a xml schema out of that assisting in marshalling and unmarshalling
<?xml version="1.0" encoding="ISO-8859-1"?>
<xsd:schema targetNamespace="http://metadata.jspwiki.org/v0.1" xmlns:w="http://metadata.jspwiki.org/v0.1" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<xsd:annotation>
<xsd:documentation xml:lang="en">jspwiki metadata</xsd:documentation>
</xsd:annotation>
<xsd:element name="pages">
<xsd:complexType>
<xsd:sequence maxOccurs="unbounded" minOccurs="0">
<xsd:element ref="w:page"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="page">
<xsd:complexType mixed="true">
<xsd:sequence maxOccurs="unbounded" minOccurs="0">
<xsd:element ref="w:properties"/>
</xsd:sequence>
<xsd:attribute name="created" type="xsd:dateTime"/>
<xsd:attribute name="lastModified" type="xsd:dateTime"/>
<xsd:attribute default="" name="author" type="xsd:string"/>
<xsd:attribute default="" name="pageName" type="xsd:string"/>
<xsd:attribute default="0" name="versionNumber" type="xsd:int"/>
</xsd:complexType>
</xsd:element>
<xsd:element name="properties">
<xsd:complexType>
<xsd:sequence maxOccurs="unbounded" minOccurs="0">
<xsd:element name="property">
<xsd:complexType>
<xsd:sequence maxOccurs="unbounded" minOccurs="0">
<xsd:element name="value" type="xsd:string"/>
</xsd:sequence>
<xsd:attribute default="" name="name" type="xsd:string"/>
</xsd:complexType>
</xsd:element>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
</xsd:schema>
for example this would be a valid page
<?xml version="1.0" encoding="UTF-8"?>
<w:pages xmlns:w='http://metadata.jspwiki.org/v0.1'
xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'
<w:page created="2006-05-24T02:30:25.000"
lastModified="2006-05-24T02:30:25.000"
author="rsc" pageName="ThisIsAPage" versionNumber="1">
<w:properties>
<property name="to">
<value>aFirstSubPage</value>
<value>aSecondSubPage</value>
</property>
</w:properties>
And this is the content
</w:page>
</w:pages>
--Rolf Schumacher
, 24-May-2006
Add new attachment
List of attachments
| Kind | Attachment Name | Size | Version | Date Modified | Author | Change note |
|---|---|---|---|---|---|---|
png |
org.jcrud.jspwiki.metadata.png | 2.7 kB | 1 | 24-May-2006 03:54 | Rolf Schumacher |