XML

From ISoft Wiki
Revision as of 18:43, 4 March 2009 by Duff (talk | contribs) (Created initial information based on the syntax used by the ITrack Pro importer extension)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

XML stands for Extensible Markup Language. It is essentially a simple format for communicating data in plain text. Various parts of ITrack have the ability to save or load XML documents, which gives ITrack users the ability to pass data round to each other easily.

Specifications

Unless otherwise noted, ITrack should be able to handle any of the following values being missing.

Documents

<document 
	taxrate=DECIMAL
	tax=STRING 
	number=INTEGER
	type=STRING <!-- Such as invoice, quote, purchase order -->
	productcode=INTEGER <!-- of the company that saved the document -->
	>
	<!-- There can be any number of lineitems. -->
		<lineitem 
			number=INTEGER
			description=STRING 
			quantity=DECIMAL 
			taxable=true/false 
			price=DECIMAL 
			pro_price=FLOAT 
			pro_core=FLOAT
			selleraddress1=STRING
			selleraddress2=STRING
			sellercity=STRING
			sellerstate=STRING
			sellerzip=STRING
			sellerphone=STRING
			buyeraddress1=STRING
			buyeraddress2=STRING
			buyeraddress3=STRING
			buyercity=STRING
			buyerstate=STRING
			buyerzip=STRING
			buyerphone=STRING
		>
			[0 or 1 inventory records]
		</lineitem>
</document>

If the pro_price or pro_core fields have values, the price field is ignored by ITrack Pro.

Inventory

<inventory 
	typenumber=INTEGER 
	partnumber=STRING <!-- refers to the user identifier (such as the Tag Number in ITrack), not the primary key of an inventory table -->
	partmanufacturer=STRING 
	partmodel=STRING 
	vehiclemake=STRING 
	vehiclemodel=STRING
/>