======XML Import for Mattel Speed-Quote====== ===== XML Address import file structure ===== An optional address file can be included in the same XMLImport folder as the main xml file to import. This file is named with the XML import file name and .addr appended. (e.g. MapsDB.xml would have a MapsDB.addr file). Here is an example .addr file with only a single entry:
1010 Polytek Street Unit 21 Ottawa Ontario Canada K1J 9J1 www.apptastic.com (613) 748-7066 (613) 749-6910 dave.stephens@apptastic.com
==== Address tags ==== The .addr file is an xml file with a root tag and multiple child
tags. An
tag would have the following attributes: * CompanyID (required) - the id attribute is the connection between this address and an address for a product in the main xml file. * CompanyType (required) - what type of address is this? * CompanyName (required) - the name of the company as it should appear in Speed-Quote. The following values are valid for CompanyType attribute: * VendorDomestic * VendorLC * USRep * OverseasAgent * Manufacturer * Factory * CustomsBroker * Bank Please see the Addresses worksheet in the {{:mattel:mattelspeedquotefields.xls|}} excel file for a list of tag fields and associated information. ==== Contact tags ==== An
node can have multiple tags which define the contacts within that company. A tag has the following attributes: * ContactID (required) - the ContactID attribute is the connection between this contact and a contact for a product in the main xml file. * ContactName (required) - the name of the contact as it should appear in Speed-Quote. ==== Connection to main xml file ==== In the main xml file an address linking tag is used to link to a specific address or contact. The tag name for a company link is and the tag name for a contact link is . Where //COMPANYTYPE// is one of the above CompanyType attribute values. The connection tags in the main xml file to link to the above example address would show as: LC_APPTASTIC LC_APPTASTIC_DAVE