XmlDataLoadOptions

Inheritance: java.lang.Object

public class XmlDataLoadOptions

Represents options for XML data loading.

To learn more, visit the LINQ Reporting Engine documentation article.

Remarks:

An instance of this class can be passed into constructors of XmlDataSource.

Constructors

ConstructorDescription
XmlDataLoadOptions()Initializes a new instance of this class with default options.

Methods

MethodDescription
getAlwaysGenerateRootObject()Gets a flag indicating whether a generated data source will always contain an object for an XML root element.
setAlwaysGenerateRootObject(boolean value)Sets a flag indicating whether a generated data source will always contain an object for an XML root element.

XmlDataLoadOptions()

public XmlDataLoadOptions()

Initializes a new instance of this class with default options.

getAlwaysGenerateRootObject()

public boolean getAlwaysGenerateRootObject()

Gets 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.

Remarks:

The default value is false .

Returns: boolean - A flag indicating whether a generated data source will always contain an object for an XML root element.

setAlwaysGenerateRootObject(boolean value)

public void setAlwaysGenerateRootObject(boolean value)

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.

Remarks:

The default value is false .

Parameters:

ParameterTypeDescription
valuebooleanA flag indicating whether a generated data source will always contain an object for an XML root element.