XmlDataLoadOptionsAlwaysGenerateRootObject Property

Gets or sets a flag indicating whether a generated data source will always contain an object for an XML root element. If an XML root element has no attributes and all its child elements have same names, such an object is not created by default.

Namespace:  GroupDocs.Assembly.Data
Assembly:  GroupDocs.Assembly (in GroupDocs.Assembly.dll) Version: 22.2
public bool AlwaysGenerateRootObject { get; set; }

Property Value

Type: Boolean
The default value is false.
See Also