
**Inheritance:**
java.lang.Object, java.lang.Enum
```
public enum XmlReadMode extends Enum<System.Data.XmlReadMode>
```

Specifies how to read XML data and a relational schema into a [DataSet](../../com.aspose.words.net.system.data/dataset/).
## Fields

| Field | Description |
| --- | --- |
| [AUTO](#AUTO) | Default. |
| [DIFF_GRAM](#DIFF-GRAM) | Reads a DiffGram, applying changes from the DiffGram to the [DataSet](../../com.aspose.words.net.system.data/dataset/) and preserving [DataRow.getRowState()](../../com.aspose.words.net.system.data/datarow/\#getRowState) values. |
| [FRAGMENT](#FRAGMENT) | Reads XML fragments, such as those generated by executing FOR XML queries, against an instance of SQL Server. |
| [IGNORE_SCHEMA](#IGNORE-SCHEMA) | Ignores any inline schema and reads data into the existing [DataSet](../../com.aspose.words.net.system.data/dataset/) schema. |
| [INFER_SCHEMA](#INFER-SCHEMA) | Ignores any inline schema, infers schema from the data and loads the data. |
| [INFER_TYPED_SCHEMA](#INFER-TYPED-SCHEMA) | Ignores any inline schema, infers a strongly typed schema from the data, and loads the data. |
| [READ_SCHEMA](#READ-SCHEMA) | Reads any inline schema and loads the data. |
## Methods

| Method | Description |
| --- | --- |
| [<T>valueOf(Class<T> arg0, String arg1)](#-T-valueOf-java.lang.Class-T--java.lang.String) |  |
| [compareTo(E arg0)](#compareTo-E) |  |
| [equals(Object arg0)](#equals-java.lang.Object) |  |
| [getDeclaringClass()](#getDeclaringClass) |  |
| [hashCode()](#hashCode) |  |
| [name()](#name) |  |
| [ordinal()](#ordinal) |  |
| [toString()](#toString) |  |
| [valueOf(String name)](#valueOf-java.lang.String) |  |
| [values()](#values) |  |
### AUTO {#AUTO}
```
public static final System.Data.XmlReadMode AUTO
```


Default.

### DIFF_GRAM {#DIFF-GRAM}
```
public static final System.Data.XmlReadMode DIFF_GRAM
```


Reads a DiffGram, applying changes from the DiffGram to the [DataSet](../../com.aspose.words.net.system.data/dataset/) and preserving [DataRow.getRowState()](../../com.aspose.words.net.system.data/datarow/\#getRowState) values.

### FRAGMENT {#FRAGMENT}
```
public static final System.Data.XmlReadMode FRAGMENT
```


Reads XML fragments, such as those generated by executing FOR XML queries, against an instance of SQL Server. When [XmlReadMode](../../com.aspose.words.net.system.data/xmlreadmode/) is set to Fragment, the default namespace is read as the inline schema.

### IGNORE_SCHEMA {#IGNORE-SCHEMA}
```
public static final System.Data.XmlReadMode IGNORE_SCHEMA
```


Ignores any inline schema and reads data into the existing [DataSet](../../com.aspose.words.net.system.data/dataset/) schema. If any data does not match the existing schema, it is discarded (including data from differing namespaces defined for the [DataSet](../../com.aspose.words.net.system.data/dataset/)). If the data is a DiffGram, IgnoreSchema has the same functionality as DiffGram.

### INFER_SCHEMA {#INFER-SCHEMA}
```
public static final System.Data.XmlReadMode INFER_SCHEMA
```


Ignores any inline schema, infers schema from the data and loads the data. If the [DataSet](../../com.aspose.words.net.system.data/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.

### INFER_TYPED_SCHEMA {#INFER-TYPED-SCHEMA}
```
public static final System.Data.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](../../com.aspose.words.net.system.data/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.

### READ_SCHEMA {#READ-SCHEMA}
```
public static final System.Data.XmlReadMode READ_SCHEMA
```


Reads any inline schema and loads the data. If the [DataSet](../../com.aspose.words.net.system.data/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](../../com.aspose.words.net.system.data/dataset/).

### <T>valueOf(Class<T> arg0, String arg1) {#-T-valueOf-java.lang.Class-T--java.lang.String}
```
public static T <T>valueOf(Class<T> arg0, String arg1)
```




**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| arg0 | java.lang.Class<T> |  |
| arg1 | java.lang.String |  |

**Returns:**
T
### compareTo(E arg0) {#compareTo-E}
```
public final int compareTo(E arg0)
```




**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| arg0 | E |  |

**Returns:**
int
### equals(Object arg0) {#equals-java.lang.Object}
```
public final boolean equals(Object arg0)
```




**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| arg0 | java.lang.Object |  |

**Returns:**
boolean
### getDeclaringClass() {#getDeclaringClass}
```
public final Class<E> getDeclaringClass()
```




**Returns:**
java.lang.Class<E>
### hashCode() {#hashCode}
```
public final int hashCode()
```




**Returns:**
int
### name() {#name}
```
public final String name()
```




**Returns:**
java.lang.String
### ordinal() {#ordinal}
```
public final int ordinal()
```




**Returns:**
int
### toString() {#toString}
```
public String toString()
```




**Returns:**
java.lang.String
### valueOf(String name) {#valueOf-java.lang.String}
```
public static System.Data.XmlReadMode valueOf(String name)
```




**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| name | java.lang.String |  |

**Returns:**
[XmlReadMode](../../com.aspose.words.net.system.data/xmlreadmode/)
### values() {#values}
```
public static System.Data.XmlReadMode[] values()
```




**Returns:**
com.aspose.words.net.System.Data.XmlReadMode[]
