public static List <ISOLinkGroup> ReadXML(XmlNodeList nodes) { List <ISOLinkGroup> items = new List <ISOLinkGroup>(); foreach (XmlNode node in nodes) { items.Add(ISOLinkGroup.ReadXML(node)); } return(items); }
public static ISO11783_LinkList ReadXML(XmlNode linkListNode, string baseFolder) { ISO11783_LinkList linkList = new ISO11783_LinkList(); linkList.VersionMajor = linkListNode.GetXmlNodeValueAsInt("@VersionMajor"); linkList.VersionMinor = linkListNode.GetXmlNodeValueAsInt("@VersionMinor"); linkList.ManagementSoftwareManufacturer = linkListNode.GetXmlNodeValue("@ManagementSoftwareManufacturer") ?? string.Empty; linkList.ManagementSoftwareVersion = linkListNode.GetXmlNodeValue("@ManagementSoftwareVersion") ?? string.Empty; linkList.TaskControllerManufacturer = linkListNode.GetXmlNodeValue("@TaskControllerManufacturer") ?? string.Empty; linkList.TaskControllerVersion = linkListNode.GetXmlNodeValue("@TaskControllerVersion") ?? string.Empty; linkList.DataTransferOriginInt = linkListNode.GetXmlNodeValueAsInt("@DataTransferOrigin"); linkList.FileVersion = linkListNode.GetXmlNodeValue("@FileVersion") ?? string.Empty; XmlNodeList lgpNodes = linkListNode.SelectNodes("LGP"); if (lgpNodes != null) { linkList.LinkGroups.AddRange(ISOLinkGroup.ReadXML(lgpNodes)); } return(linkList); }