ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "disalle" <disa...@di.univaq.it>
Subject how to create
Date Wed, 14 Feb 2007 17:37:33 GMT
Hi all,
I have a simple table (for example PERSON) and I would like to create an
xml file containing all table rows, for example
<?xml version="1.0" encoding="UTF-8"?>
<PERSONS>
<PERSON>
<NAME>amleto</NAME>
......
</PERSON>
......
</PERSONS>
I have used sqlMapClient.queryWithRowHandler and I have defined a
CustomRowHandler but, I have noticed that IBatis for each row add the
"<?xml version="1.0" encoding="UTF-8"?>" string. 
How can I deleted this string and/or is there another way to implement
it?
 
Here the xml configuration file:
<select id="findAllPersons" resultClass="xmlCollection"
xmlResultName="PERSON">
        SELECT * FROM PERSONS ORDER BY PERSON
</select>
 
BR
/Amleto
 
 

 

Mime
View raw message