Copyright © TIBCO Software Inc. All Rights Reserved
Copyright © TIBCO Software Inc. All Rights Reserved


Appendix C Creating XML Documents : Using XML Documents

Using XML Documents
You can use XML documents in many ways. A primary way is through the Object Integration Gateway programmatic interfaces, such as the runXMLDoc method of the ects2AppBean class. You can also create a rule to output an XML document into a file or a data set.
The following figure is an example of a rule that retrieves an XML document and saves it to a file.
 
This other example shows a transaction that uses the XML_TEST1 rule:
 
Here is a segment of the primer.xml file produced by the transaction:

 
<?xml version="1.0" ?>
<!-- XMLDocName=PRIMER_DEPTS -->
<!-- Generated By ObjectStar Integration Gateway V2.5 - Code Level 1.00 -->
<DEPARTMENT>
<DEPT DEPTNO="10" DNAME="ACCOUNTING" LOC="TORONTO" ADDRESS="200 UNIVERSITY AVE, M8C 3V1">
<ects_employees ID="80003">
<LastName>CHANG</LastName>
<DateHired>1987-02-21</DateHired>
<HRData>
<Position>ASSOC.ANALYST</Position>
<Department value="10" />
<Salary>589.91</Salary>
</HRData>
</ects_employees>
<ects_employees ID="80006">
<LastName>MILMAN</LastName>
<DateHired>1985-05-15</DateHired>
<HRData>
<Position>ANALYST</Position>
<Department value="10" />
<Salary>699.49</Salary>
</HRData>
</ects_employees>
<ects_employees ID="82009">
<LastName>BOIVIN</LastName>
<DateHired>1983-10-30</DateHired>
<HRData>
<Position>ASSISTANT MGR</Position>
<Department value="10" />
<Salary>543.50</Salary>
</HRData>
</ects_employees>
...

 
You need not execute the rule you created through a transaction. Feel free to run the rule from any other interface, such as the Text Workbench.

Copyright © TIBCO Software Inc. All Rights Reserved
Copyright © TIBCO Software Inc. All Rights Reserved