Fixed table object classes
Added function for constructing item object from XML.