What is the best way to convert Oracle903 ResultSet to XML ?

R

rs207

I'n using oracle.xml.sql.query.OracleXMLQuery and then returning the
xml string using getXMLString method
Is there a better way to do that?

Thanks
rs
 
M

Malte

rs207 said:
I'n using oracle.xml.sql.query.OracleXMLQuery and then returning the
xml string using getXMLString method
Is there a better way to do that?

Thanks
rs

I feel it is quicker and more portable to use a stored procedure that
generates the XML, then use a CallableStatement to call the sp and
return the xml.
 
R

rs207

Thanks for the quick response:
I'm running a stored procedure using prepareCall,
read the ResultSet using registerOutParameter(2,OracleTypes.CURSOR) and
converting to XML using: new OracleXMLQuery(con,rs)

Am i using the best way ???
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,055
Latest member
SlimSparkKetoACVReview

Latest Threads

Top