Import Format to create XML:
Steps to import files to Wiki:
- Create XML file and save
it in the desktop
- Compress as a zip file
- Access http://wiki.zoho.com. Create a new wiki or access the existing one.
- Go to Wiki -->
Settings --> Export & Import.
- Upload the zip file and you will get the
pages in your wiki.
Listed below are the basic XML tags that help
you to create XML file. Using these tags,
XML Tags
|
Description
|
Mandatory Field
|
wiki
|
Starting Tag. It indicates
the Wiki page. It has two sub tags - Pages, Attachments
|
YES
|
pages
|
It has one sub tag -
Page
|
YES
|
page
|
It is the Starting Tag for
the page. It has 12 sub tags - id, name,url, type, author, version, createdon, modifiedby, modifiedon, content, pageattachments,comments.
It indicates the number of pages also.
|
YES
|
id
|
It indicates the Page Id
|
NO
|
name
|
It indicates the Page
Name. This would be the page name created on the wiki.
|
YES
|
url
|
It indicates the Page URL. This would
be the page URL created on the wiki.
|
YES
|
type
|
It indicates the Page Type (Page Type - web page/ dashboard page/ file cabinet)
|
YES
|
author
|
It indicates the Author of the Page.
|
YES
|
version
|
It indicates the Page Version.
|
NO
|
createdon
|
It indicates the Page creation date.
|
NO
|
modifiedby
|
It indicates the person who last modified the page.
|
NO
|
modifiedon
|
It indicates the last modified time on the page.
|
NO
|
content
|
It indicates the content of that page. CDATA is also
mandatory for that page content.
|
NO
|
comments
|
It
indicates the starting tag to the comments of the page. It has one sub tag
- comment tag.
|
NO(If you have comments to the page then these tag is a
mandatory tag.)
|
comment
|
If you
have comments in the page, you can use the tag to put comments in the
page. These tags indicate the number of comments that are there.
|
YES
|
content
|
It
indicates the page comment.
|
YES
|
commentedby
|
It indicates the person who has commented
|
YES
|
commentedon
|
It indicates when the person commented on your page.
|
NO
|
pageattachments
|
It indicates
the attachment of that page. It has one sub tag - id.
|
NO(If
you have attachment is attached to particular page then these tag is a
mandatory tag.)
|
id
|
It indicates the
attachment id. The id refers to the attachment to the
page.
|
YES |
attachments
|
It indicates the wiki attachment starting tag.
|
NO(If you have attachment is attached to the wiki then these tag is a mandatory tag.)
|
attachment
|
It indicates the number of attachments to wiki. It has nine sub tags - id, name, attachedby, attachedon, version, type, size, desc, localfilepath
|
YES
|
id
|
It indicates the attachment Id.
|
YES
|
name
|
It indicates the attachment Name.
|
YES
|
attachedby
|
It indicates the person who made the attachment to the wiki.
|
YES
|
attachedon
|
It indicates when attachment to the wiki was made.
|
YES
|
version
|
It indicates the attachment version.
|
YES |
type
|
It indicates the attachment type.
|
YES
|
size
|
It indicates the attachment size.
|
YES
|
desc
|
It indicates the attachment description.
|
YES
|
localfilepath
|
It indicates the local attachment file name.
|
YES
|
Note:
- If you want to upload attachments to the wiki,attach your attachment to the exported zip.
- If you want to upload attachment to the page, check if your pageattachment-->id tag value and your attachment name are same.
- In index.xml, space is not allowed between tags.
- The imported zip contains index.xml and
attachment files if any.
YourWiki.zip
|__ index.xml
|__ 100100
|__
100200
Example XML File:
<?xml version='1.0' encoding='UTF-8' ?>
<wiki>
<pages>
<page>
<id>100</id>
<name>Page-Name1</name>
<url>Page-URL1</url>
<type>0</type>
<author>mano</author>
<version>1.1</version>
<createdon>1271073047925</createdon>
<modifiedby>mano</modifiedby>
<modifiedon>1271073313887</modifiedon>
<content><![CDATA[Your html source code goes here... This will be considered as page 1]]></content>
<comments>
<comment>
<content><![CDATA[Your page 1 comment]]></content>
<commentedby>alexranjith</commentedby>
<commentedon>1274446656969</commentedon>
</comment>
</comments>
</page>
<page>
<id>101</id>
<name>Page-Name2</name>
<url>Page-URL2</url>
<type>0</type>
<author>mano</author>
<version>1.1</version>
<createdon>1251730367604</createdon>
<modifiedby>mano</modifiedby>
<modifiedon>1271072979193</modifiedon>
<content><![CDATA[html souce code goes here....This will be considered as page 2]]></content>
<pageattachments>
<id>1001</id>
</pageattachments>
</page>
</pages>
<attachments>
<attachment>
<id>1001</id>
<name>Zoho Wiki.pdf</name>
<attachedby>mano</attachedby>
<attachedon>1251730472917</attachedon>
<version>1.0</version>
<type>application/pdf</type>
<size>638283</size>
<desc><![CDATA[attachment description]]></desc>
<localfilepath>100100</localfilepath>
</attachment>
<attachment>
<id>1002</id>
<name>log.gif</name>
<attachedby>mano</attachedby>
<attachedon>1248280354504</attachedon>
<version>1.0</version>
<type>image/gif</type>
<size>12547403</size>
<desc><![CDATA[attachment 2 description]]></desc>
<localfilepath>100200</localfilepath>
</attachment>
</attachments>
</wiki>