Hi,
first of all, i'am a beginner in xml/xsql. I have the following xsql statement. the result i need is ok. the problem i have. I would like to have a history file each time the xsql statement has been executed. the filename should something like "yyyymmddhhmm.xml" or any other filetype e.g. flat txt file. what do I have to change in the code below?
thankis in advance in for any help.
regards
WEB Designer & WEB Developer (as per my working contract) and ASP Newbie
first of all, i'am a beginner in xml/xsql. I have the following xsql statement. the result i need is ok. the problem i have. I would like to have a history file each time the xsql statement has been executed. the filename should something like "yyyymmddhhmm.xml" or any other filetype e.g. flat txt file. what do I have to change in the code below?
Code:
<?xml version='1.0'?>
<?xml-stylesheet type="text/xsl" href="suppliers.xsl" ?>
<page xmlns:xsql="urn:oracle-xsql" connection="{@conn}">
<General>
<IDJob>00000000-0000-0000-0000-000000000000</IDJob>
<IDUser>-1</IDUser>
<IDServer>-1</IDServer>
<IDAnswerType>1</IDAnswerType>
<AnswerAddress>NO</AnswerAddress>
<xsql:query max-rows="-1"
null-indicator="no"
rowset-element="Generated" >
SELECT TO_CHAR( SYSDATE, 'YYYY-MM-DD HH24:MI.SS' ) dummy from dual
</xsql:query>
</General>
<Schedule>
<Type>0</Type>
</Schedule>
<Tasks>
<Task>
<Reference>1</Reference>
<ClassAlias>SupplierImport</ClassAlias>
<Method>createSuppliers</Method>
<Predecessors></Predecessors>
<ParameterList>
<Suppliers>
<xsql:query max-rows="-1" null-indicator="no" tag-case="lower"
rowset-element=""
row-element="">
SELECT SYS_ID systemid
from organisations
</xsql:query>
<xsql:query max-rows="-1"
null-indicator="no"
tag-case="lower"
rowset-element="" >
SELECT count(*) count
from suppliers
where sup_stat IN ( '1', '2' )
</xsql:query>
<xsql:query max-rows="-1" null-indicator="yes" tag-case="lower"
row-element="Supplier"
rowset-element=""
id-attribute=""
id-attribute-column=""
>
SELECT sup_id id,
name,
cursor ( select addr_1 line1,
addr_2 line2,
addr_3 line3,
addr_4 line4,
pstl_distct location,
post_cd code,
jur_jur_id country,
e_mail_addr email,
tel_no phone,
fax_no fax,
cntct_name contact
from addresses addresses
WHERE sup_id = addr_for
AND addr_type = '4'
AND addr_clsn = '1' ) as address
from suppliers supplier
where sup_stat IN ( '1', '2' )
</xsql:query>
</Suppliers>
</ParameterList>
<ResultList></ResultList>
</Task>
</Tasks>
<Maps></Maps>
</page>
thankis in advance in for any help.
regards
WEB Designer & WEB Developer (as per my working contract) and ASP Newbie