XStream - Right Converter

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

XStream - Right Converter

murali_kmd
This post has NOT been accepted by the mailing list yet.
Hi,

I'm using the XStream 1.4.2, I'm having an issue with the Java Object to XML conversion, as part of the XML conversion I want to replace a value to another String. I want to use a right converter or mapper, please suggest.

XML

  <AccessMethod>1001</AccessMethod>
  <AllianceName>Testing</AllianceName>


This above XML, I want to replace it with mentioned below.


  <AccessMethod>Request Description</AccessMethod>
  <AllianceName>Testing</AllianceName>


How do that, please let me know your suggestion.