I am not sure if this is the right place to post this topic.
I am new in Groovy scripting and I hope to solicit your help/feedback.
Input:
<Raw>
<Param>fname=Hello&lname=World</Param>
</Raw>
Requirement:
1. Parse Param using & as identifier
2. Put parsed data to an array. e.g. array1:[fname=Hello, lname=World]
3. Loop into the array while creating an xml. Value element below, is dynamically generated based on the array content.
e.g <Info>
<Value name=fname>Hello</Value>
<Value name=lname>World</Value>
</Info>
5. Return the result/generated xml document as a
string.
I hope you can help me with this case-study. Thank you in advance.