pls.. help me about wxWidgets and html tag
Fabian Cenedese
Cenedese at indel.ch
Mon Jun 18 00:23:35 PDT 2007
At 16:33 16.06.2007 -0300, Rafael Pacheco wrote:
>hi all =/
>wxwidgets sounds every day hard then i start with it..
>documentation horrible... examples horribles..
Nice way to start asking for help :)
>basicly is this:
>i download the mininova.org search something page
>
>then.. the html code have the data to be filter in the listctrl
>all is in tag: "maintable"
If the real xml solutions don't work for you because your html
file is not conformant you can still resort to simple string
handling.
e.g.
char buffer[size];
char* start=strstr(filetext, "<maintable>");
if (start) {
char* end=strstr(filetext, "</maintable>");
start+=strlen("<maintable>");
strncpy(buffer, start, end-start);
}
Or if you like regex better, something like (untested):
.*<maintable>(.*)</maintable>.*
Look up wxRegEx (Compile, Matches, GetMatch).
bye Fabi
More information about the wx-users
mailing list