public class XMLDocument extends TextDocument
XMLDocument class.| Constructor and Description |
|---|
XMLDocument() |
| Modifier and Type | Method and Description |
|---|---|
XMLModel |
getXMLModel(Project project)
Fetches the
XMLModel. |
getTextModeladdDocumentListener, close, equals, getDisplayInfo, getElementImpl, getReader, getTimestamp, getURI, hashCode, isDirty, isNew, isOpen, isReadOnly, markDirty, open, removeDocumentListener, save, setDisplayInfo, setURIgetIcon, getLabel, getLongLabel, getToolTippublic final XMLModel getXMLModel(Project project) throws java.io.IOException
XMLModel. This calls opens the document and loads
its contents. The XMLModel instance returned lives while
clients refer to it. Once a model instance is not referred by
clients it may be garbage collected at any time.XMLModel containing the document's xml model.java.io.IOException - if the document cannot be opened.