Having an Oracle database with a table STUDENT, which has a field STUDEN_NAME, is there a way to retrieve it enclosed in XML tags?
select STUDENT_NAME from STUDENT;
res.getString("STUDENT_NAME"); // I want: <StudenName>PAUL</StudentName>
Thanks
select xmlelement("StudentName", STUDENT_NAME) from STUDENT;
A Google search for
oracle result set as xml
Turned up the Oracle XML DB Developer's Guide, specifically chapter 18, entitled Generating XML Data from the Database - from where I got the syntax shown above.
res.getString(1).