XmlEditorService Class
Provides access to the XML Editor parse tree. This class is a publicly accessible Visual Studio service that you can get from your IServiceProvider interface.
Namespace: Microsoft.VisualStudio.XmlEditor
Assembly: Microsoft.VisualStudio.XmlEditor (in Microsoft.VisualStudio.XmlEditor.dll)
Inheritance Hierarchy
System.Object
Microsoft.VisualStudio.XmlEditor.XmlEditorService
Syntax
[CLSCompliantAttribute(false)]
[GuidAttribute("F2CA69F1-49CD-4c69-9E73-B625F324596E")]
public abstract class XmlEditorService
[CLSCompliantAttribute(false)]
[GuidAttribute("F2CA69F1-49CD-4c69-9E73-B625F324596E")]
public ref class XmlEditorService abstract
[<AbstractClass>]
[<CLSCompliantAttribute(false)>]
[<GuidAttribute("F2CA69F1-49CD-4c69-9E73-B625F324596E")>]
type XmlEditorService = class end
<CLSCompliantAttribute(False)>
<GuidAttribute("F2CA69F1-49CD-4c69-9E73-B625F324596E")>
Public MustInherit Class XmlEditorService
Constructors
| Name | Description | |
|---|---|---|
![]() |
XmlEditorService() | Initializes a new instance of the XmlEditorService class. |
Methods
| Name | Description | |
|---|---|---|
![]() |
CreateXmlStore() | Creates a new XmlStore object. |
![]() |
Equals(Object) | (Inherited from Object.) |
![]() |
Finalize() | (Inherited from Object.) |
![]() |
GetHashCode() | (Inherited from Object.) |
![]() |
GetType() | (Inherited from Object.) |
![]() |
MemberwiseClone() | (Inherited from Object.) |
![]() |
ToString() | (Inherited from Object.) |
Remarks
To get the the XML Editor parse tree you first have to get the XmlEditorService and then call CreateXmlStore to create the new XmlStore, as follows:
XmlEditorService es = site.GetService(typeof(XmlEditorService));
XmlStore store = es.CreateXmlStore();
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
See Also
Microsoft.VisualStudio.XmlEditor Namespace
Return to top
.gif)
.gif)