Skip to content

Instantly share code, notes, and snippets.

@mayurdange
Created March 19, 2018 11:56
Show Gist options
  • Select an option

  • Save mayurdange/021ae74d7ec0dffca8bffce08ed2cf2b to your computer and use it in GitHub Desktop.

Select an option

Save mayurdange/021ae74d7ec0dffca8bffce08ed2cf2b to your computer and use it in GitHub Desktop.
prints the contents of object, [useful in case the toString() is not properly implemented]
XStream l_xstream = new XStream( new Sun14ReflectionProvider( new FieldDictionary( new ImmutableFieldKeySorter() ) ), new DomDriver("utf-8") );
trace.error( l_xstream.toXML( instance_here_will_be_converted_into_xml_using_reflection ));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment