XmlDocument.Implementation XmlDocument.Implementation XmlDocument.Implementation XmlDocument.Implementation Property


Gets the XmlImplementation object for the current document.

 property System::Xml::XmlImplementation ^ Implementation { System::Xml::XmlImplementation ^ get(); };
public System.Xml.XmlImplementation Implementation { get; }
member this.Implementation : System.Xml.XmlImplementation
Public ReadOnly Property Implementation As XmlImplementation

Property Value

The XmlImplementation object for the current document.


The following example creates a new XmlDocument using another document's implementation.

XmlDocument^ doc1 = gcnew XmlDocument;
doc1->Load( "books.xml" );
XmlDocument^ doc2 = doc1->Implementation->CreateDocument();
XmlDocument doc1 = new XmlDocument();
 XmlDocument doc2 = doc1.Implementation.CreateDocument();
Dim doc1 As New XmlDocument()
Dim doc2 As XmlDocument = doc1.Implementation.CreateDocument()


XmlDocument objects created from the same XmlImplementation share the same XmlNameTable. This allows users to compare attribute and element names as objects rather than strings.

Although the XmlDocument objects share the same implementation, to move nodes from one document to another you must use the ImportNode method.

Applies to