Did not catch that thanks Daniel.
Post the custom RH and your full sqlmap.
It looks like his problem is that every row adds a <?xml version...>, which is incorrect behavior.But, It could also be that his CustomRowHandler is incorrectly implemented.
Why do you want to remove that line. It should not be causing you any issues when parsing the xml file that is generated.
From: Nathan Maves [mailto:email@example.com]
Sent: Wednesday, February 14, 2007 2:20 PM
Subject: Re: how to create
On 2/14/07, disalle <firstname.lastname@example.org> wrote: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