- Published on
How to automatically generate ID's for elements in oXygen XML Editor
- Authors
- Name
- Khalil
- @Im_Khalil
There are multiple ways to automatically generate ID's for elements when they are inserted in oXygen XML Editor.
Using idGenerationDefaultOptions.xml :
idGenerationDefaultOptions.xml
which is found in the ${oxygenInstallDir}\frameworks\dita\resources
directory and keeps only the default elements for which you need IDs to be generated. You can edit this file and additional elements for which you want to add ID.

Using ID Options:
Using ID options dialog box we can configure list of elements to generate ids automatically. ID Options
dialog box can be found on $(frameworkMenuItem)>ID Options

PS: The changes made using ID Options
dialog will override the elements list configured in idGenerationDefaultOptions.xml
file.
Programatic way:
Following is the api to generate id for elements
PluginWorkspaceProvider.getPluginWorkSpace().getUtilAccess().expandEditorVariables("${id}",null);
You might also like to read
- 1.Add Emergency Info to Your Phone's Lock Screen — A Small Step That Can Make a Big Difference
- 2.Automatically Add Entry and Exit Logging to Java Methods
- 3.How to enable God Mode in windows
- 4.How to monitor replication queues in AEM
- 5.Implementing A Spinner Dialog and Block User Input During REST API Calls in AEM