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. 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. The default value is false.
Parameters:
Parameter
Type
Description
value
boolean
A flag indicating whether a generated data source will always contain an object for an XML root element.
Was this page helpful?
Any additional feedback you'd like to share with us?
Please tell us how we can improve this page.
Thank you for your feedback!
We value your opinion. Your feedback will help us improve our documentation.