From: Rodrigo C. <rn...@gm...> - 2007-03-02 20:57:53
|
Mark (et all.), you can try my random access API now if you want. The code is working and tested while processing very large and complex XML. As I previously said, the API can be used in a very simple way: SimpleContext ctx = new SimpleContext(); navigator.setCtxFromNav(ctx); // hold context // do whatever you want navigator.setNavFromCtx(ctx); // return to the context The code of SimpleContext is very easy and understandable. The code for the functions in VTDNav is also very simple, and basically a copy+paste of the code used for stack memory. Both hashCode() and equals() are implemented in an efficient way (untested...) so that contexts can be kept in structures requiring such attributes. Also the context class can be created in large numbers, since it's so lightweight. You just need to recompile ximpleware-2.0 using my 2 files, included here as attachements. New ideas, bug reports, etc, are welcomed :-) |