Jose Alberto Fernandez wrote:
...
To tell you the truth, I think the whole business of printing
results of queries using SQLTask was a mistake, and should have
been defined on a separate task that can do real XML output of
results that one can manipulate and format in watever fashion. The current arrangement is a product of the early days of ANT.

The last version of the xml extractor patch uses an external task for extracting. Is this something that could be of interest?


[PATCH] Xml output for the SQL task
http://issues.apache.org/bugzilla/show_bug.cgi?id=28681

Usage example:

  <taskdef name="extractorxml"
      classname="org.apache.tools.ant.taskdefs.SQLExtractorXML"/>

  <extractorxml id="myextractorxml"/>

    <sql driver="..."
         url="..."
         userid="..."
         password="..."
         print="yes"
         output="${work.dir}/outputfile.xml"
         extractorRef="myextractorxml"
    >
      ${data.sql}
    </sql>


-- Nicola Ken Barozzi [EMAIL PROTECTED] - verba volant, scripta manent - (discussions get forgotten, just code remains) ---------------------------------------------------------------------


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to