0

How do I convert the following string into XML element using JAVA

String: TeacherId=ABCDEFGH&Action=Student&StudentId.Id.1=1001&StudentId.Id.2=1002&ClassRoom=12B&Year=2020

Excepted Output:

<School>
<ClassRoom>12B</ClassRoom>
    <StudentId>
        <Id>1001</Id>
        <Id>1002</Id>
    </StudentId> 
</School>
2

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.