Closed. This question is off-topic。它当前不接受答案。
                            
                        
                    
                
                            
                                
                
                        
                            
                        
                    
                        
                            想改善这个问题吗? Update the question,所以它是on-topic,用于堆栈溢出。
                        
                        3年前关闭。
                                                                                            
                
        
是否可以将ResultSet的值(查询执行的结果)转换为XML?如果是这样,哪个API可以处理?

最佳答案

您可以查看以下示例:

http://download.oracle.com/javase/1.5.0/docs/api/javax/sql/rowset/WebRowSet.html

http://www.java2s.com/Code/Java/Database-SQL-JDBC/ConvertaResultSettoXML.htm

关于java - 将ResultSet值转换为XML? ,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/7815990/

10-11 22:19