[bt-devel] Bookmark XML format

Jan Paul Schmidt bt-devel@crosswire.org
15 Jul 2002 10:25:56 +0200


Am Son, 2002-07-14 um 16.30 schrieb Joachim Ansorg:
> 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?

I did not followed the thread, but as I remember, the topic bookmarks
came up on the Sword list, too. Did anybody thought of using XBEL (XML
Bookmark Exchange Language) for bookmarks? For example, Konqueror and
Galeon are using this and maybe it is possible to come up with a format,
not only suitable for browsers but for the bible programs. I'm thinking
of - and I know others, too - a new protocol for the URL, like sword or
something and registrating the bible program or maybe a bible plugin for
this protocol and everytime you click on a URL, e.g.
sword://web/john%201:1/, you are guided into your bible program. This is
interesting for online documents with quotes, which are just ordinary
links you click on and get the verse. Or it is interesting, as you can
share your bookmarks with you browser. Or you can include online
references in your bookmarks of the bible program. And if you click
there, your browser openes or is embeded in the bible window. Just some
thoughts, as I don't know, what you people came up with.

jps