Hello,
In Java the XML DOM is interface based, hence pluggable implementations. In
..NET it's been in from the start of course and is class based, but I notice
there appear to be some alternate implementations appearing, eg xerces has
been ported, and Saxon 8 .NET for XSLT 2.0 support (which if it's like Java
will have a DOM implementation optimised for the XSLT processor).
If I want to provide a public API which takes an XML Document (DOM), is
there a relatively clean way to allow pluggable DOM implementations, all
that occurs to
me initally is to write/steal DOM interfaces and provide adapters for
System.Xml, or to assume that use of alternative implementations is very
unlikely,
so just use System.Xml.XmlDocument and make the caller copy alternative
implementations to that.
Thanks, Richard