You need to first correctly describe the drivers for all your connections. You cannot parse XML with Scriptella unless you use the xpath driver. More information: http://scriptella.org/reference/drivers.html
:
- java- , 2 ,
- xml β xpath
- csv β csv
- csv, .
xml data.xml, csv data.csv, scriptella etl script:
<!DOCTYPE etl SYSTEM "http://scriptella.javaforge.com/dtd/etl.dtd">
<etl>
<connection id="in" driver="xpath" url="data.xml" />
<connection id="out" driver="csv" url="data.csv">
quote=
separator=;
</connection>
<script connection-id="out">
TITLE,ARTIST,COUNTRY,COMPANY,PRICE,YEAR
</script>
<query connection-id="in">
/CATALOG/CD
<script connection-id="out">
$TITLE,$ARTIST,$COUNTRY,$COMPANY,$PRICE,$YEAR
</script>
</query>
</etl>
, XML-. $TITLE, $TITLE $TITLE, <TITLE> XML.
rownum ETL.