0
PostgreSQL Funktionを使用して、私のテーブルのすべての情報が入っているXMLを返します。PostgreSQL:関数の結果を得る
/* get all cat names */
create function cat_names() returns xml as $$
select to_xml('select name FROM cat_Infos;');
$$ language sql;
私はfolowingない結果を得るために:
ResultSet rs = sql.executeQuery("select cat_names()");
while (rs.next()) {
// This is where I actually thought that I could pass the XML I get, to my DOMParser.
// I thought about something like this :
DOMParser dom = new DOMParser();
dom.setImputString(//Xml I get from the resultset)
}
問題は、私が実際にどのようにするResultSetからXMLを取得するには考えている
は、これは私の関数です。