[bt-devel] Bookmark XML format

Joachim Ansorg bt-devel@crosswire.org
Sun, 14 Jul 2002 16:30:05 +0200


Bookmarks are now saved by the new main index class. The bookmarks are saved in an XML file which looks like this:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE DOC>
<SwordBookmarks syntaxVersion="1" >
 <Folder caption="Jesus" >
  <Bookmark modulename="WEB" key="John 1:1" moduledescription="World English Bible" description="" />
  <Folder caption="Son of God" >
   <Bookmark modulename="WEB" key="John 3:16" moduledescription="World English Bible" description="" />
  </Folder>
 </Folder>
 <Bookmark modulename="WEB" key="Revelation of John 1:1" moduledescription="World English Bible" description="" />
</SwordBookmarks>


<Bookmark> is a bookmark, <Folder> is a folder which may contain bookmarks. In BibleTime we put all the folders and bookmarks into an own bookmark folder.
See the attributes of each element to see what is saved in the file.
As you can see folders can be nested. 
The keys of bookmarks are everytime saved in the english locale so all applications can read them properly. Each bookmark may have an additional description.

Terry, do you need some more things in the format or is it ok this way?

Thanks!
Joachim