A parser for Netscape Bookmark File Format
There’re many kinds of bookmark formats for browsers, Netscapte Bookmark File Format is a popular one. it has a long story, the HTML-like bookmark is not easy to parse, XML is the best alternative, if I’ve got choice. but the well-known browser FireFox still use this format. In order to parse it, you have to do it using the basic string operation, like ‘find’, ’substring’, etc. I wrote a small app for parsing bookmarks.html which is located in “…\Application Data\Mozilla\Firefox”, the project was built with VS2005(UNICODE version). Follow this link to download the project files.
I’v got a question: How to sort IE’s favorites, IE saves its favorites in a directory, but the order is saved in Windows Registry([HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\MenuOrder\Favorites]). The binary data is saved as private data format, AFAIK there is no articles about this format on MSDN. I saw some articles illustrating how to ‘GUESS’ the real meaning of it. but guessing is not the perfect solution, if you know about this, please tell me :).