James Strachan wrote: <snip/>
> Sounds cool. > > BTW I've been meaning to write a Navigator based on Betwixt for some time. > > http://jakarta.apache.org/commons/betwixt.html > > Betwixt is an XML introspector which provides a mapping of how Java beans > should appear as XML elements and attributes. Like normal bean introspection > it provides a default mechanism and a way to customize the XML view. This > allows develoeprs to customize the look and feel of the XML of their beans, > such as levels of nesting, renaming elements/attributes, using a mixture of > elements/attributes, how collections & maps should appear and so forth. Sounds cool. I'll have to look into that. I find this sort of approach in general to be more interesting and useful than straightforward serialization-type approaches. My approach does not attempt to be too general. However, my current model does afford some level of flexibility in terms of what view of the data model the navigator presents. > A purely reflection based Navigator would be useful as well. Let me know if > you want commit access to SAXPath to fix the bug you've found. Thanks. I haven't delved into that, yet, but I hope to do so. I also just stumbled across a bug in Jaxen's FunctionCallException's printStackTrace functions. Basically, the two printStackTrace functions that take an argument always call the super method without the argument. For instance: public void printStackTrace( PrintStream s ) { super.printStackTrace(); if ( nestedException != null ) { s.println( "Root cause:" ); nestedException.printStackTrace( s ); } } So if you explicitly pass a particular stream to the class for the stack trace, the super class still always dumps it's stack trace to System.err. There also is an inconsistency in its two contructors that accept nested exceptions. One accepts any Throwable; the other will only accept Exceptions. I'd be willing to dive in and fix this, too, unless someone else would prefer to do it. _______________________________________________________________ Have big pipes? SourceForge.net is looking for download mirrors. We supply the hardware. You get the recognition. Email Us: [EMAIL PROTECTED] _______________________________________________ Jaxen-interest mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jaxen-interest