IntMember smid = (IntMember)ile.get("ItemID");
Integer listItemid = (Integer)smid.getMemberValue();
if (listItemid.intValue() == intToken)
{
StringMember smName = (StringMember)ile.get("Name"); // name = description
String name = (String)smName.getMemberValue();
StringMember smSku = (StringMember)ile.get("SKU");
String sku = (String)smSku.getMemberValue();
FloatMember smPrice = (FloatMember)ile.get("Price");
Float dp = (Float)smPrice.getMemberValue();
float dprice = dp.floatValue();
FloatMember smCost = (FloatMember)ile.get("Cost");
Float dc = (Float)smCost.getMemberValue();
float dcost = dc.floatValue();
int id = ile.getElementID();
IntMember LineId = new IntMember("LineId", 11, 10, "", 'T', false, 20);
IntMember ItemId = new IntMember("ItemId", id, 10, "", 'T', false, 20);
StringMember SKU = new StringMember("SKU", sku, 10, "", 'T', false);
StringMember Description = new StringMember("Description", name, 10, "", 'T', false);
FloatMember Quantity = new FloatMember("Quantity", new Float(0.0f), 10, "", 'T', false, 20);
FloatMember PriceEach = new FloatMember("PriceEach", new Float(0.0f), 10, "", 'T', false, 20);
FloatMember PriceExtended = new FloatMember("PriceExtended", new Float(0.0f), 10, "", 'T', false, 20);
FloatMember UnitTax = new FloatMember("UnitTax", new Float(0.0f), 10, "", 'T', false, 20);
FloatMember TaxRate = new FloatMember("UnitTaxrate", new Float(0.0f), 10, "", 'T', false, 20);
FloatMember OrderQuantity = new FloatMember("OrderQuantity", new Float(0.0f), 10, "", 'T', false, 20);
FloatMember PendingQuantity = new FloatMember("PendingQuantity", new Float(0.0f), 10, "", 'T', false, 20);
IntMember Value = new IntMember("Value", 0, 10, "", 'T', false, 20);
StringMember Type = new StringMember("Type", "", 10, "", 'T', false);
FloatMember DiscountedPrice = new FloatMember("DiscountedPrice", new Float(0.0f), 10, "", 'T', false, 20);
FloatMember price = new FloatMember("Price", dp, 10, "", 'T', false, 10);
FloatMember cost = new FloatMember("Cost", dc, 10, "", 'T', false, 10);
ItemElement ie = new ItemElement(11);