respected sir,
I am very much new to xml , now i am doing an application in ajax, i am calling a servlet from jsp,where i am fetching the data's from the database,now the code is like this
vector v = new vector();
while(rs.next())
{
v.add(rs.getString("EMP_ID"));
}
now i want to send back these values in the xml format
i.e.
responseObj.getWriter.writer(here i have to send the values in the
<head>
<a1> v.elementAt(i)</a1>
</head>);
now my problem is i want recursively get this a1 tag with dynamically changing values, so can i do it for loop, if any one knows please help me.
thanking you