This documentation is archived and is not being maintained.

<interopXmlElement> Element

Creates a bidirectional map between a common language runtime type and an XML element and XML namespace.

<configuration>
   <system.runtime.remoting>
      <application>
         <soapInterop>
            <interopXmlElement>

<interopXmlElement 
   clr="FullTypeName, AssemblyName" 
   xml="xmlElement,xmlNamespace"
/>

Required Attributes

Attribute Description
clr Specifies the full type name and assembly name of the type for which you want to create mapping to an XML element and XML namespace. This includes version, culture, and public key information if the containing assembly is in the global assembly cache.
xml Specifies the XML element and the XML namespace for which you want to create a mapping to a type and assembly.

Example

The following example associates the element ElementName and the XML namespace Example:mynamespace with the .NET type TypeName implemented by the AssemblyName assembly. The same is true of the XML type and namespace.

<configuration>
   <system.runtime.remoting>
      <application name="soapInterop">
         <soapInterop>
            <interopXmlElement 
               xml="ElementName,Example:mynamespace"                clr="TypeName,AssemblyName"
            />
            <interopXmlType  
               xml="XmlTypeName,Example:TypeNamespace" 
               clr="TypeName,AssemblyName"
            />
         </soapInterop>
      </application>
   </system.runtime.remoting>
</configuration>

Requirements

Configuration Files: Application configuration file, machine configuration file (Machine.config)

See Also

Remoting Settings Schema

Show: