XmlReadMode

Contents
[ ]

Inheritance: java.lang.Object, java.lang.Enum

public enum XmlReadMode extends Enum<XmlReadMode>

A utility class providing constants. Specifies how to read XML data and a relational schema into a DataSet.

Fields

Field Description
AUTO Default.
READ_SCHEMA Reads any inline schema and loads the data.
IGNORE_SCHEMA Ignores any inline schema and reads data into the existing DataSet schema.
INFER_SCHEMA Ignores any inline schema, infers schema from the data and loads the data.
DIFF_GRAM Reads a DiffGram, applying changes from the DiffGram to the DataSet and preserving DataRow.getRowState() values.
FRAGMENT Reads XML fragments, such as those generated by executing FOR XML queries, against an instance of SQL Server.
INFER_TYPED_SCHEMA Ignores any inline schema, infers a strongly typed schema from the data, and loads the data.

Methods

Method Description
values()
valueOf(String name)

AUTO

public static final XmlReadMode AUTO

Default.

READ_SCHEMA

public static final XmlReadMode READ_SCHEMA

Reads any inline schema and loads the data. If the DataSet already contains schema, new tables may be added to the schema, but an exception is thrown if any tables in the inline schema already exist in the DataSet.

IGNORE_SCHEMA

public static final XmlReadMode IGNORE_SCHEMA

Ignores any inline schema and reads data into the existing DataSet schema. If any data does not match the existing schema, it is discarded (including data from differing namespaces defined for the DataSet). If the data is a DiffGram, IgnoreSchema has the same functionality as DiffGram.

INFER_SCHEMA

public static final XmlReadMode INFER_SCHEMA

Ignores any inline schema, infers schema from the data and loads the data. If the DataSet already contains a schema, the current schema is extended by adding new tables or adding columns to existing tables. An exception is thrown if the inferred table already exists but with a different namespace, or if any of the inferred columns conflict with existing columns.

DIFF_GRAM

public static final XmlReadMode DIFF_GRAM

Reads a DiffGram, applying changes from the DiffGram to the DataSet and preserving DataRow.getRowState() values.

FRAGMENT

public static final XmlReadMode FRAGMENT

Reads XML fragments, such as those generated by executing FOR XML queries, against an instance of SQL Server. When XmlReadMode is set to Fragment, the default namespace is read as the inline schema.

INFER_TYPED_SCHEMA

public static final XmlReadMode INFER_TYPED_SCHEMA

Ignores any inline schema, infers a strongly typed schema from the data, and loads the data. If the type cannot be inferred from the data, it is interpreted as string data. If the DataSet already contains a schema, the current schema is extended, either by adding new tables or by adding columns to existing tables. An exception is thrown if the inferred table already exists but with a different namespace, or if any of the inferred columns conflict with existing columns.

values()

public static XmlReadMode[] values()

Returns: com.groupdocs.assembly.system.data.XmlReadMode[]

valueOf(String name)

public static XmlReadMode valueOf(String name)

Parameters:

Parameter Type Description
name java.lang.String

Returns: XmlReadMode