Dynamicweb.eCommerce.Orders Namespace > OrderLineFieldValueCollection Class : ToXML Method |
public static OrderLineFieldValueCollection CopyCollection(OrderLineFieldValueCollection col) { XmlDocument xmlDoc = col.ToXML(); OrderLineFieldValueCollection newCol = new OrderLineFieldValueCollection(); XmlNode root = xmlDoc["OrderLineFieldValueCollection"]; foreach (XmlNode fieldValueNode in root.SelectNodes("OrderLineFieldValue") { String systemName = fieldValueNode["OrderLineFieldSystemName"].InnerText(); String value = fieldValueNode["Value"].InnerText(); newCol.Add(new OrderLineFieldValue(systemName, value)); } return newCol; }
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2