If you are using the main C++ distribution of wxWidgets, Feel free to ask any question related to wxWidgets development here. This means questions regarding to C++ and wxWidgets, not compile problems.
Ok, I have determined the the XML method seems to be the only workable solution as it gathers all the right data into a processible structure. Still seems inefficient, but it can be made to work without having to hack the library.