Sign in to follow this  

[Help Needed] Parsing in Groovy

Recommended Posts

I am new in groovy and I hope to solicit your feedback.

I have a requirement to parse the content from the xml and generate new xml dynamically.


1. Parse Param using & as identifier    
2. Put parsed data to an array. e.g. array: [fanme=Hello, lname=World]
3. Loop into the array while creating an xml. Value element below, should be dynamically generated based on the array content.
    e.g <Info>
            <Value name=fname>Hello</Value>
            <Value name=lname>World</Value>

5. Return the result/generated xml document as a string.

I hope you can help me on this case study.

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Who's Online   0 Members, 0 Anonymous, 6 Guests (See full list)

    There are no registered users currently online