Microsoft KB Archive/815112

= The use of MSXML is not supported in .NET applications =

Article ID: 815112

Article Last Modified on 10/1/2007

-

APPLIES TO


 * Microsoft .NET Framework Class Libraries 2.0
 * Microsoft .NET Framework Class Libraries 1.1
 * Microsoft .NET Framework Class Libraries 1.0

-



SUMMARY
Microsoft does not support the use of MSXML (Microsoft’s COM-based XML parser) in .NET applications.

MSXML uses threading models and garbage-collection mechanisms that are not compatible with the .NET Framework. Using MSXML in .NET applications through COM interoperability can result in unexpected problems that are difficult to debug. Microsoft does not recommend or support directly instantiating and using MSXML objects in .NET code, nor does Microsoft recommend or support marshalling MSXML interface pointers across the interop boundary.



MORE INFORMATION
Support for implementing standards-based XML functionality in .NET applications is built into the .NET Framework. The .NET Framework classes in the System.xml namespaces should be used to implement standards-based XML functionality in .NET applications.

