[bt-devel] Bookmark XML format

Terry Biggs bt-devel@crosswire.org
14 Jul 2002 16:01:29 -0400


On Sun, 2002-07-14 at 10:30, Joachim Ansorg wrote:
> 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?
> 

Could you add a caption= to the Bookmark tag? Most of the time
gnomesword uses the key for the label but not always. The key for a gbs
module can be rather long.

terry
--