Print Search
Content Actions
Wiki Search
Random Art
Update

XML Parsing Logic

Stage 1: GetItemRequest

if Item exist
if Item->ListingDetails exsts
date = Item->ListingDetails->EndTime
if Item->SellingStatus exsts
reserveMet = Item->SellingStatus->ReserveMet
bids = Item->SellingStatus->BidCount
sold = Item->SellingStatus->QuantitySold
if Item->SellingStatus->ListingStatus == "Active"
ended = FALSE
else
ended = TRUE
if Item->SellingStatus->CurrentPrice.currency == "USD"
price = Item->SellingStatus->CurrentPrice
else
price = Item->SellingStatus->ConvertedCurrentPrice

Stage 2: GetAllBiddersRequest

if HighestBid exists
if HighestBid.currency == "USD"
price = HighestBid
else
price = BidArray -> Offer[0] -> HighestBid