Create a structure that writes to different files.
About this task
In this example, you want to create a structure that inherits from two other structures and writes the output to two XML files.
Procedure
- Create a new empty structure with an XML representation.
- Create a root element, then create a child element named ShipNotice.
-
In the ShipNotice
element properties, click the ... button
to the right of Inherits From and select
Examples > Structures > Simple > POStandard > SimpleShipNotice.
The child elements are automatically added under ShipNotice.
- Drag and drop a WriteURL function in the IO/Database tab of the ShipNotice element.
-
Double-click WriteURL to
define its properties:
Example
Property Value Representation XML URL URL to the file to write to, file:///c:/users/jsmith/documents/shipnotice.xml for example. Append Select this check box if you want to append this file at each execution. - Create a new element named PurchaseOrders under the root.
- In the PurchaseOrders element properties, click the ... button to the right of Inherits From and select Examples > Structures > Paypal > PurchaseOrder2.
- Drag and drop a WriteURL function in the IO/Database tab of the PurchaseOrders element.
-
Double-click WriteURL to
define its properties:
Example
Property Value Representation XML URL URL to the file to write to, file:///c:/users/jsmith/documents/purchaseorders.xml for example. Append Select this check box if you want to append this file at each execution. - Press Ctrl + S to save your structure.