I can easily create this with a map file:
<?xml version="1.0" encoding="utf-8"?>
<workorders>
<workorder>
<id>909562</id>
<amount>141.08</amount>
</workorder>
</workorders>
I want to create this:
<?xml version="1.0" encoding="utf-8"?>
<workorders method = "synchronous">
<workorder>
<id>909562</id>
<amount>141.08</amount>
</workorder>
</workorders>
My map file looks like this (some lines were cut out):
001: <?xml version="1.0"?>
002: <U2xml-mapping xmlns>
003: <U2xml:mapping
004: root="workorders"
005: record="workorder"/>
006: encoding="utf-8"
007: />
008: <U2xml:mapping
009: file="WORK.ORDER"
010: field="@ID"
011: map-to="id"
012: treated-as="element"
013: />
020: <U2xml:mapping
021: file="WORK.ORDER"
022: field="TOT.DEBITS"
023: map-to="amount"
024: conversion="MR2"
025: treated-as="element"
026: />
I don't want to write a basic program when I am this close. Thanks.
Ed Burwell
973-361-5400 ext. 1512
973-615-9880 cell
[EMAIL PROTECTED]
______________________________________________________________________
This e-mail has been scanned by MCI Managed Email Content Service, using
Skeptic(tm) technology powered by MessageLabs. For more information on MCI's
Managed Email Content Service, visit http://www.mci.com.
______________________________________________________________________
-------
u2-users mailing list
[email protected]
To unsubscribe please visit http://listserver.u2ug.org/