From 19121fe232c8994a41b9c57f2bf7e21c5a6e000d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yann=20C=C3=A9bron?= Date: Wed, 23 Jun 2021 11:08:11 +0200 Subject: [PATCH] xml_dom_api.md: default to new EP --- .../frameworks_and_external_apis/xml_dom_api.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/topics/reference_guide/frameworks_and_external_apis/xml_dom_api.md b/topics/reference_guide/frameworks_and_external_apis/xml_dom_api.md index daeebe101..4713c10b1 100644 --- a/topics/reference_guide/frameworks_and_external_apis/xml_dom_api.md +++ b/topics/reference_guide/frameworks_and_external_apis/xml_dom_api.md @@ -1,6 +1,6 @@ [//]: # (title: XML DOM API) - + @@ -78,9 +78,10 @@ interface Bar extends com.intellij.util.xml.DomElement { } ``` -Next, you should create a [`DomFileDescription`](upsource:///xml/dom-openapi/src/com/intellij/util/xml/DomFileDescription.java) object, pass to its constructor the root tag name and root element interface, and register it with extension point `com.intellij.dom.fileDescription`. +Next, you should create a [`DomFileDescription`](upsource:///xml/dom-openapi/src/com/intellij/util/xml/DomFileDescription.java) class, pass to its constructor the root tag name and root element interface. +Register it in plugin.xml using `com.intellij.dom.fileMetaData` extension point and specify `rootTagName` and `domVersion`/`stubVersion` attributes. - > If your plugin targets 2019.1 or later, please use extension point `com.intellij.dom.fileMetaData` instead and specify `rootTagName` and `domVersion`/`stubVersion` in `plugin.xml`. + > When targeting 2019.1 or earlier, use `com.intellij.dom.fileDescription` extension point instead. > {type="note"}