XmlModel.Document Property
Gets the XDocument object that represents the current parse tree for the XML Editor buffer.
Namespace: Microsoft.VisualStudio.XmlEditor
Assembly: Microsoft.VisualStudio.XmlEditor (in Microsoft.VisualStudio.XmlEditor.dll)
Usage
'Usage
Dim instance As XmlModel
Dim value As XDocument
value = instance.Document
Syntax
'Declaration
Public MustOverride ReadOnly Property Document As XDocument
public abstract XDocument Document { get; }
public:
virtual property XDocument^ Document {
XDocument^ get () abstract;
}
/** @property */
public abstract XDocument get_Document ()
public abstract function get Document () : XDocument
Property Value
The XDocument object that represents the current parse tree for the XML Editor buffer.
Remarks
You can keep this object until the next BufferReloaded event. The XML Editor has an incremental parser that tries to preserve the identity of an XNode. This means that you can keep any XNode in this parse tree until an XmlModelChange renders that node invalid.
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.
Platforms
Development Platforms
Windows XP Home Edition, Windows XP Professional, Windows Server 2003 , Windows Server 2008, and Windows 2000
Target Platforms
See Also
Reference
XmlModel Class
XmlModel Members
Microsoft.VisualStudio.XmlEditor Namespace
Build Date:
2012-11-12