Hi Guys,
I am working on an application, in which i will be receiving data in HashMap. Every "value" in hasmap needs to be formatted based on XML Key tables. For example-
suppose HashMap has following values-
TxnDate = "15-Oct-2010"
cardType = "MC"
The XML table is something like this-
<Param name="TxnDate" input="dd-Mon-yyyy" output="dd/mm/yyyy" />
<Param name="cardType" input="MC" output="MASTERCARD" />
for everything else I can do a direct mapping, but for date i need to format the data. I am so confuse which approach shall i follow?
Can anyone guide me in a proper direction...I am writing the application in JAVA.