The Galeon Bookmarks file is called "bookmarks.xbel". This file is located at $HOME/.galeon/ There is example code from the file. Galeon has support for smart bookmarks where you can assign it a nick (as I did for freshmeat fm). Then you put a %s where you want what every you type after the nick to be placed. example:
fm anjutaThis will go directly to the search page on Freshmeat and search for it. Pheonix has the same functionality. Opera has had that for a while. I am going to play with your code and see if I can't make a user daemon to keep all the bookmarks syncronized. I was thinking of creating a daemon and tie-ing the files to functions in the daemon so when Opera reads its bookmarks the daemon will respond with what it is looking for. When it writes to the file another function would accept it and put it into it's DB. I would really like to have it use live data from a DB instead of having a wait time to sync the bookmarks.