private static Page GetPage(XmlReader reader) { return(new Page { DocumentLocator = AttributeHelpers.GetInt(reader.GetAttribute("DocumentLocator")), BatchSequence = AttributeHelpers.GetInt(reader.GetAttribute("BatchSequence")), TransactionSequence = AttributeHelpers.GetInt(reader.GetAttribute("TransactionSequence")), GroupSequence = AttributeHelpers.GetInt(reader.GetAttribute("GroupSequence")), ScanSequence = AttributeHelpers.GetInt(reader.GetAttribute("ScanSequence")), ScanTime = AttributeHelpers.GetDateTime(reader.GetAttribute("ScanTime")), ItemStatus = AttributeHelpers.GetItemStatus(reader.GetAttribute("ItemStatus")), IsVirtual = AttributeHelpers.GetBooleanFromYesNo(reader.GetAttribute("IsVirtual")), PageType = AttributeHelpers.GetPageType(reader.GetAttribute("PageType")), PageName = reader.GetAttribute("PageName"), SubPageName = reader.GetAttribute("SubPageName"), OperatorSelect = AttributeHelpers.GetBooleanFromYesNo(reader.GetAttribute("OperatorSelect")), Bin = reader.GetAttribute("Bin"), AverageThickness = AttributeHelpers.GetFloat(reader.GetAttribute("AverageThickness")), EnvelopeDetect = AttributeHelpers.GetEnvelopeDetect(reader.GetAttribute("EnvelopeDetect")), SkewDegrees = AttributeHelpers.GetFloat(reader.GetAttribute("SkewDegrees")), DeskewStatus = AttributeHelpers.GetDeskewStatus(reader.GetAttribute("DeskewStatus")), FrontStreakDetectStatus = AttributeHelpers.GetFrontStreakDetectStatus(reader.GetAttribute("FrontStreakDetectStatus")), BackStreakDetectStatus = AttributeHelpers.GetBackStreakDetectStatus(reader.GetAttribute("BackStreakDetectStatus")), PlugInPageMessage = reader.GetAttribute("PlugInPageMessage"), Length = reader.GetAttribute("Length"), Height = reader.GetAttribute("Height") }); }