Is there a library that will recursively dump/print an objects properties? I\'m looking for something similar to the console.dir() function in Firebug.
XStream xstream = new XStream(new Sun14ReflectionProvider(
new FieldDictionary(new ImmutableFieldKeySorter())),
new DomDriver("utf-8"));
System.out.println(xstream.toXML(new Outer()));