Skip to content

fix: docs/standard/serialization/system-xml-serialization-element.md #13043

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
102 changes: 53 additions & 49 deletions docs/standard/serialization/system-xml-serialization-element.md
Original file line number Diff line number Diff line change
@@ -1,61 +1,65 @@
---
title: "<system.xml.serialization> Element"
ms.date: "03/30/2017"
helpviewer_keywords:
helpviewer_keywords:
- "system.xml.serialization element"
- "XML serialization, configuration"
- "<system.xml.serialization> element"
ms.assetid: 3ce45919-388a-418c-8968-6df0372c73ec
---
# \<system.xml.serialization> Element
The top-level element for controlling XML serialization. For more information about configuration files, see [Configuration File Schema](../../../docs/framework/configure-apps/file-schema/index.md).

\<configuration>
\<system.xml.serialization>

## Syntax

```xml
<system.xml.serialization>
</system.xml.serialization>
```

## Attributes and Elements
The following sections describe attributes, child elements, and parent elements.

### Attributes
None.

### Child Elements

|Element|Description|
|-------------|-----------------|
|[\<dateTimeSerialization> Element](../../../docs/standard/serialization/datetimeserialization-element.md)|Determines the serialization mode of <xref:System.DateTime> objects.|
|[\<schemaImporterExtensions> Element](../../../docs/standard/serialization/schemaimporterextensions-element.md)|Contains types that are used by the <xref:System.Xml.Serialization.XmlSchemaImporter> for mapping of XSD types to .NET Framework types.|

### Parent Elements

|Element|Description|
|-------------|-----------------|
|[\<configuration> Element](../../../docs/framework/configure-apps/file-schema/configuration-element.md)|The root element in every configuration file that is used by the common language runtime and .NET Framework applications.|

## Example
The following code example illustrates how to specify the serialization mode of a <xref:System.DateTime> object, and the addition of types used by the <xref:System.Xml.Serialization.XmlSchemaImporter> when mapping XSD types to .NET Framework types.

```xml
<system.xml.serialization>
<xmlSerializer checkDeserializeAdvances="false" />
<dateTimeSerialization mode = "Local" />
<schemaImporterExtensions>
<add
name = "MobileCapabilities"
type = "System.Web.Mobile.MobileCapabilities,
System.Web.Mobile, Version - 2.0.0.0, Culture = neuutral,
PublicKeyToken = b03f5f6f11d40a3a" />
</schemaImporterExtensions>
</system.sxml.serialization>
```


The top-level element for controlling XML serialization. For more information about configuration files, see [Configuration File Schema](../../../docs/framework/configure-apps/file-schema/index.md).

\<configuration>\
\<system.xml.serialization>

## Syntax

```xml
<system.xml.serialization>
</system.xml.serialization>
```

## Attributes and Elements

The following sections describe attributes, child elements, and parent elements.

### Attributes

None.

### Child Elements

|Element|Description|
|-------------|-----------------|
|[\<dateTimeSerialization> Element](../../../docs/standard/serialization/datetimeserialization-element.md)|Determines the serialization mode of <xref:System.DateTime> objects.|
|[\<schemaImporterExtensions> Element](../../../docs/standard/serialization/schemaimporterextensions-element.md)|Contains types that are used by the <xref:System.Xml.Serialization.XmlSchemaImporter> for mapping of XSD types to .NET Framework types.|

### Parent Elements

|Element|Description|
|-------------|-----------------|
|[\<configuration> Element](../../../docs/framework/configure-apps/file-schema/configuration-element.md)|The root element in every configuration file that is used by the common language runtime and .NET Framework applications.|

## Example

The following code example illustrates how to specify the serialization mode of a <xref:System.DateTime> object, and the addition of types used by the <xref:System.Xml.Serialization.XmlSchemaImporter> when mapping XSD types to .NET Framework types.

```xml
<system.xml.serialization>
<xmlSerializer checkDeserializeAdvances="false" />
<dateTimeSerialization mode = "Local" />
<schemaImporterExtensions>
<add
name = "MobileCapabilities"
type = "System.Web.Mobile.MobileCapabilities,
System.Web.Mobile, Version=2.0.0.0, Culture=neutral,
PublicKeyToken=b03f5f6f11d40a3a" />
</schemaImporterExtensions>
</system.xml.serialization>
```

## See also

- <xref:System.Xml.Serialization.XmlSchemaImporter>
Expand Down