Export (0) Print
Expand All

<interopXmlType> Element 

Creates a bidirectional map between a common language runtime type and an XML type and XML namespace. You use this element when a type is specified with the xsi:type attribute in SOAP.


<interopXmlType  
   clr="FullTypeName, AssemblyName"  
   xml="XmlType, XmlNamespace" 
/>

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

Attributes

Attribute Description

clr

Required attribute.

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

xml

Required attribute.

Specifies the XML type name and the XML type namespace for which you want to create a mapping to a type and assembly.

Child Elements

None.

Parent Elements

Element Description

application

Contains information about remote objects the application consumes and exposes.

configuration

The root element in every configuration file used by the common language runtime and .NET Framework applications.

soapInterop

Contains type mappings used with SOAP.

system.runtime.remoting

Contains information about remote objects and channels.

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>

Community Additions

ADD
Show:
© 2014 Microsoft