Sample KCXML Document
Here’s an example of a KCXML document, followed by a line-by-line explanation of the syntax used in the document:
<?xml version="1.0" encoding="ISO-8859-1"?><kanaRoot> <EventRequest Id=”12345” CompanyName=”Default”> <Customer E-mailAddress=”connect@kana.com” BirthDate=”111”> <CustomerAttribute name="First Name">John</CustomerAttribute> <CustomerAttribute name="Last Name">Smith</CustomerAttribute> <CustomerPreference name="Favorite River"> <CustomerPreferenceValue>Amazon</CustomerPreferenceValue> <CustomerPreferenceValue>Yangtze</CustomerPreferenceValue> </CustomerPreference> </Customer> <Event CampaignName="EToy Event"> < EventAttribute Name="Product">Dell Computer</EventAttribute> < EventAttribute Name="Price">300</EventAttribute> < EventAttribute Name="DateOfPurchase">802390</EventAttribute> <ExternalXML> <ORDER NO="1" > <SHIPPING TYPE="UPGRADE" CARRIER="FEDEX" TRACKNUMBER="8201280912"> <DATE DAY="15" MONTH="05" YEAR="2000" /> </SHIPPING> <ITEMLIST> <ITEM NUMBER="1" QTY="2" PRODUCTDESC="Tele Tubby pink" STATUS="CA" WEBSITEID="2" FUNDS="100" /> <ITEM NUMBER="2" QTY="4" PRODUCTDESC="Tele Tubby blue" STATUS="NONFINAL" WEBSITEID="1" FUNDS="200" /> <ITEM NUMBER="3" QTY="1" PRODUCTDESC="GI Joe" STATUS="SH" WEBSITEID="1" FUNDS="0" /> <ITEM NUMBER="4" QTY="1" PRODUCTDESC="Bennie Baby" STATUS="CA" WEBSITEID="2" FUNDS="0" /> <ITEM NUMBER="5" QTY="5" PRODUCTDESC="Bennie Baby" STATUS="NONFINAL" WEBSITEID="2" FUNDS="150" /> </ITEMLIST> </ORDER> </ExternalXML> </Event> </EventRequest></kanaRoot>