XmlCodeExporter Class

This class supports the .NET Framework infrastructure and is not intended to be used directly from your code.

Generates types and attribute declarations from internal type mapping information for XML schema element declarations.

Namespace: System.Xml.Serialization
Assembly: System.Xml (in system.xml.dll)

public class XmlCodeExporter : CodeExporter
public class XmlCodeExporter extends CodeExporter
public class XmlCodeExporter extends CodeExporter
Not applicable.

The XmlCodeExporter class generates .NET Framework types or attribute declarations from internal mappings to .NET Framework types. These internal mappings are generated by the XmlSchemaImporter class for elements defined in an XSD document or as parts in a Web Services Description Language (WSDL) document. XmlCodeExporter is not used directly; it is used with the Web Services Description Language tool (Wsdl.exe) or the XML Schema Definition tool (Xsd.exe).

Wsdl.exe uses the types or attribute declarations that are generated by XmlCodeExporter and the internal mappings generated by the XmlSchemaImporter class to generate client proxy classes or abstract server classes from a WSDL document. Wsdl.exe uses XmlCodeExporter and the ServiceDescriptionImporter class when a WSDL document specifies:

  • Literal use, indicating that the contents of SOAP message parameters and return values (or request and response documents) are literally specified with XML schema definitions.

  • Non-SOAP implementations of Web services using the HTTP-GET and HTTP-POST operations.

  • Xsd.exe uses XmlCodeExporter to generate classes from XML Schema Definition (XSD) documents.


Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Windows 98, Windows Server 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0, 1.1, 1.0

Community Additions