private static XmlElement GenerateAttribList(XmlDocument document, Item item) { var attributeListElement = document.CreateElement("attriblist"); attributeListElement.AppendChild(CommonMapper.GenerateAttribute(document, "itm_item_id", "Item: ITS ID", item.Id)); attributeListElement.AppendChild(CommonMapper.GenerateAttribute(document, "itm_item_subject", "Item: Subject", "ELA")); attributeListElement.AppendChild(CommonMapper.GenerateAttribute(document, "itm_item_desc", "Item: Item Description")); attributeListElement.AppendChild(CommonMapper.GenerateAttribute(document, "itm_FTUse", "Fieldtest Use")); attributeListElement.AppendChild(CommonMapper.GenerateAttribute(document, "itm_OPUse", "Operational Use")); attributeListElement.AppendChild(CommonMapper.GenerateAttribute(document, "itm_att_Answer Key", "Item: Answer Key", item.Metadata["CorrectAnswer"])); attributeListElement.AppendChild(CommonMapper.GenerateAttribute(document, "itm_att_Grade", "Item: Grade", ExtractionSettings.Grade, ExtractionSettings.Grade)); attributeListElement.AppendChild(CommonMapper.GenerateAttribute(document, "itm_att_Item Format", "Item: Item Format", "MC", "MC4 [1]")); attributeListElement.AppendChild(CommonMapper.GenerateAttribute(document, "itm_att_Page Layout", "Item: Page Layout", "21")); attributeListElement.AppendChild(CommonMapper.GenerateAttribute(document, "itm_att_Response Type", "Item: Response Type", "Vertical")); attributeListElement.AppendChild(CommonMapper.GenerateAttribute(document, "itm_att_Item Point", "Item: Item Point", "1 pt.", "1 Point")); attributeListElement.AppendChild(CommonMapper.GenerateAttribute(document, "stm_pass_id", "Stim: ITS ID", !string.IsNullOrEmpty(item.PassageId) ? item.PassageId : string.Empty)); return(attributeListElement); }
private static XmlElement GenerateAttribList(XmlDocument document, Passage passage) { var attributeListElement = document.CreateElement("attriblist"); attributeListElement.AppendChild(CommonMapper.GenerateAttribute(document, "stm_pass_id", "Stim: ITS ID", passage.Id)); attributeListElement.AppendChild(CommonMapper.GenerateAttribute(document, "stm_pass_subject", "Stim: Subject", "ELA")); attributeListElement.AppendChild(CommonMapper.GenerateAttribute(document, "stm_pass_desc", "Stim: Description")); return(attributeListElement); }