INFO: Use of MSXML is Not Supported in .NET Applications (815112)



The information in this article applies to:

  • 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 and 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.

REFERENCES

For additional informationabout implementing XML functionality in .NET applications by using the Framework classes that are implemented in the System.xml namespace, click the following article numbers to view the articles in the Microsoft Knowledge Base:

313651 INFO: Roadmap for XML in the .NET Framework

324888 WebCast: Programming XML in the Microsoft .NET Framework Part II

For additional information and code samples to explain how you can implement common MSXML tasks by using the System.xml .NET Framework classes, click the following article number to view the article in the Microsoft Knowledge Base:

330589 HOW TO: Implement Common MSXML Tasks in System.xml by Using Visual C#


Modification Type:MajorLast Reviewed:9/3/2003
Keywords:kbinterop kbXML kbNameSpace kbCOMServices kbCompModel kbinfo KB815112 kbAudDeveloper