Export (0) Print
Expand All

<interopXmlElement> Element

This topic is specific to a legacy technology that is retained for backward compatibility with existing applications and is not recommended for new development. Distributed applications should now be developed using the  Windows Communication Foundation (WCF).

Creates a bidirectional map between a common language runtime type and an XML element and XML namespace. This element may occur in an application configuration file, machine configuration file.


<interopXmlElement  
   clr="FullTypeName, AssemblyName"  
   xml="xmlElement,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 element 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 element and the XML namespace for which you want to create a mapping to a type and assembly.

Child Elements

None.

Parent Elements

Element Description

application

Defines a collection of build providers used to compile custom resource files. You can have any number of build providers.

configuration

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

interopXmlElement

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

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