Dynamicweb 8 Documentation
ToXML Method
Example 

Creates the XML document with OrderLineFieldValue objects in this collection.
Syntax
'Declaration
 
Public Function ToXML() As XmlDocument
public XmlDocument ToXML()
Example
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;
}
Requirements

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

See Also

Reference

OrderLineFieldValueCollection Class
OrderLineFieldValueCollection Members

Send Feedback