hi all
i am trying to generate a xml file from jsp dynamically from db as
it will give me like
<roottag>
<leaveinfo>
<xxx>somestring</xxx>
<year>someyear</year>
........
</leaveinfo>
</roottag>
but i want in some other format like
<roottag>
<leaveinfo xxx="somestr" year="someyear" ...>
<leaveinfo xxx="...." year="...." .....>
</roottag>
can some one help me with some example
i am trying to generate a xml file from jsp dynamically from db as
it will give me like
<roottag>
<leaveinfo>
<xxx>somestring</xxx>
<year>someyear</year>
........
</leaveinfo>
</roottag>
but i want in some other format like
<roottag>
<leaveinfo xxx="somestr" year="someyear" ...>
<leaveinfo xxx="...." year="...." .....>
</roottag>
can some one help me with some example