I'm creating a program which will download an HTML document from, theortically any location (via plugins), and take the HTML and conver tot an HTML like XML format.
Should I create my own HTML library for converting to the XML? In theory, this program should be pretty portable (just to various *NIX's right now). If not, is there a pretty good and portable HTML library out there which will help my conversion process?
Also, in OpenBSD functions are given a _ infront of them, not so in linux (the one I use atleast). I noticed in some configure scripts it checks to see if functions start with a _ or not. How do I deal with a function starting with a _? Would it be something like
whatever = dlsym(handle, "_yadda");
whatever = dlsym(handle, "yadda");
Or make a function that is a wrapper for dlsym and use something liek #ifdef HAS_UNDERSCORE and adds an underscore and then calls dlsym().
Or is there a better way to do this?
Any help you may offer is greatful, I'm trying to get a good design before I start programming so hopefully this project will go by quickly.