System.Xml.XmlImplementation Class

Assembly: System.Xml.dll
Namespace: System.Xml
Summary
Defines the context for a set of XmlDocument objects.
C# Syntax:
public class XmlImplementation
Remarks
XmlDocument objects that are created from the same implementation share the same XmlNameTable. This enables users to compare attribute and element names between the objects more efficiently.

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

See also:
System.Xml Namespace

System.Xml.XmlImplementation Member List:

Public Constructors
ctor #1 Default constructor. This constructor is called by derived class constructors to initialize state in this type.
Initializes a new instance of the XmlImplementation class.
Public Methods
CreateDocument Creates a new XmlDocument.
Equals
(inherited from System.Object)
See base class member description: System.Object.Equals

Derived from System.Object, the primary base class for all objects.
GetHashCode
(inherited from System.Object)
See base class member description: System.Object.GetHashCode

Derived from System.Object, the primary base class for all objects.
GetType
(inherited from System.Object)
See base class member description: System.Object.GetType

Derived from System.Object, the primary base class for all objects.
HasFeature Tests if the DOM implementation implements a specific feature.
ToString
(inherited from System.Object)
See base class member description: System.Object.ToString

Derived from System.Object, the primary base class for all objects.
Protected Methods
Finalize
(inherited from System.Object)
See base class member description: System.Object.Finalize

Derived from System.Object, the primary base class for all objects.
MemberwiseClone
(inherited from System.Object)
See base class member description: System.Object.MemberwiseClone

Derived from System.Object, the primary base class for all objects.

Hierarchy:


System.Xml.XmlImplementation Member Details

ctor #1
Summary
Initializes a new instance of the XmlImplementation class.

Default constructor. This constructor is called by derived class constructors to initialize state in this type.
C# Syntax:
public XmlImplementation();

Return to top


Method: CreateDocument()
Summary
Creates a new XmlDocument.
C# Syntax:
public virtual XmlDocument CreateDocument();
Return Value:
The new XmlDocument object.
Remarks
XmlDocument objects created from the same implementation share the same name table. This enables users to compare attribute and element names between the objects more efficiently.

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

Example
The following example creates two XmlDocument objects from the same implementation.
XmlImplementation imp = new XmlImplementation();
XmlDocument doc1 = imp.CreateDocument();
XmlDocument doc2 = imp.CreateDocument();

    
See also:
NameTable

Return to top


Method: Equals(
   object obj
)
Inherited
See base class member description: System.Object.Equals
C# Syntax:
public virtual bool Equals(
   object obj
);

For more information on members inherited from System.Object click on the link above.

Return to top


Method: Finalize()
Inherited
See base class member description: System.Object.Finalize
C# Syntax:
~XmlImplementation();

For more information on members inherited from System.Object click on the link above.

Return to top


Method: GetHashCode()
Inherited
See base class member description: System.Object.GetHashCode
C# Syntax:
public virtual int GetHashCode();

For more information on members inherited from System.Object click on the link above.

Return to top


Method: GetType()
Inherited
See base class member description: System.Object.GetType
C# Syntax:
public Type GetType();

For more information on members inherited from System.Object click on the link above.

Return to top


Method: HasFeature(
   string strFeature,
   string strVersion
)
Summary
Tests if the DOM implementation implements a specific feature.
C# Syntax:
public bool HasFeature(
   string strFeature,
   string strVersion
);
Parameters:

strFeature

The package name of the feature to test. This name is not case-sensitive.

strVersion

This is the version number of the package name to test. If the version is not specified (null), supporting any version of the feature causes the method to return true.

Return Value:
true if the feature is implemented in the specified version; otherwise, false.

The following table shows the combinations that cause HasFeature to return true.



strFeature strVersion
XML 1.0
XML 2.0

Return to top


Method: MemberwiseClone()
Inherited
See base class member description: System.Object.MemberwiseClone
C# Syntax:
protected object MemberwiseClone();

For more information on members inherited from System.Object click on the link above.

Return to top


Method: ToString()
Inherited
See base class member description: System.Object.ToString
C# Syntax:
public virtual string ToString();

For more information on members inherited from System.Object click on the link above.

Return to top


Top of page

Copyright (c) 2002 Microsoft Corporation. All rights reserved.