XMLmind XML Editor - Commands

Hussein Shafie

XMLmind Software

35 rue Louis Leblanc,
78120 Rambouillet,
France,
Phone: +33 (0)9 52 80 80 37,
Web: www.xmlmind.com/xmleditor
Email:  (public mailing list)

October 8, 2025

Abstract

This document contains the reference of all native XXE commands and explains how to write custom macro-commands.


Table of Contents
I. Guide
1. What is a command?
2. Writing macro-commands
1. How commands are executed
2. A sequence of commands
3. Alternative commands
4. Testing if a command can be executed
5. The "%_" variable
6. Macro-variables
7. Simple use of named variables
8. General use of get
9. Variables mapped to the selection in XXE
10. Contextual commands
II. Reference
3. Menu commands
1. Reference
2. Redefining or extending the right-click, contextual, popup menu
4. Macro commands
1. Reference
1.1. Pass and fail cheat sheet
1.2. Macro-variables
1.3. XPath variables
1.3.1. User variables
1.3.2. Predefined variables
2. Running XED scripts in a macro
3. Examples
5. Process commands
1. Reference
1.1. Attributes
1.2. Element copyDocument
1.2.1. Attributes
1.2.2. Element extract
1.2.3. Element resources
1.3. Element convertImage
1.3.1. Parameters supported by the built-in Java image toolkit
1.4. Element copyProcessResources
1.5. Element transform
1.5.1. Using a custom XSLT style sheet
1.6. Element processFO
1.7. Element upload
1.8. Element post
1.9. Element read
1.10. Element mkdir
1.11. Element rmdir
1.12. Element delete
1.13. Element copy
1.14. Element zip
1.15. Element jar
1.16. Element shell
1.17. Element invoke
1.18. Element subProcess
1.19. Process variables
2. Commented examples
2.1. Convert explicitly or implicitly selected para to a formalpara
2.2. Convert a DocBook document to RTF
2.3. Convert ImageDemo document to HTML
6. Commands written in the Java™ programming language
1. alert
2. add
3. addAttribute
4. addBlockInFlow
5. autoSpellChecker
6. beep
7. cancelSelection
8. center
9. checkExternalRefs
10. checkValidity
11. commentOut
12. confirm
13. contextualMenu
14. convert
15. convertCase
16. copy
17. copyAsInclusion
18. copyChars
19. copyImage
20. countWords
21. cut
22. declareNamespace
23. demoteListItem
23.1. Configuring the promoteListItem and demoteListItem commands
24. delete
25. deleteChar
26. deleteSelectionOrDeleteChar
27. deleteSelectionOrJoinBlockOrDeleteChar
28. deleteWord
29. diffSupport
30. drag
31. drop
32. editAttribute
33. editAttributes
34. editObject
35. editPITarget
36. editMediaInfo
37. ensureSelectionAt
38. execute
39. executeMenuItem
40. extendSelectionAt
41. extractObject
42. fail
43. formatTextAs
43.1. Specifying an element template for use by command formatTextAs
43.2. Filtering the text pasted in the document
44. insert
45. insertCharByName
46. insertCharSequence
47. insertControlChar
48. insertNewlineOrSplitBlock
49. insertNode
50. insertOrOverwriteString
51. insertSpecialChars
52. insertSameBlock
52.1. Specifying splittable blocks
53. insertString
54. insertTextOrMoveDot
55. join
56. listAnchors
57. listBindings
58. listRepeatable
59. moveDotTo
60. moveElement
61. normalizeWhiteSpacePre
62. overwriteMode
63. overwriteString
64. pass
65. paste
66. pasteAs
67. pasteImageAs
68. pasteSystemSelection
69. pick
70. preview
71. promoteListItem
72. prompt
73. putAttribute
74. recordMacro
75. redo
76. refresh
77. reinclude
78. remark
79. removeAttribute
80. repeat
81. replace
82. resizeImage
83. resizeTableTemplate
84. resizeCALSTableTemplate
85. run
86. search
87. searchReplace
88. searchReplaceElement
89. selectAt
90. selectFile
91. selectConvertedFile
92. selectLink
93. selectNode
93.1. List of element names or node types
93.2. OrNone, OrNode, OrElement modifiers
94. selectNodeAt
95. selectText
96. selectTo
97. setProperty
98. setReadOnly
99. setObject
100. showContentModel
101. showElementReference
102. showMatchingChar
103. showColumnRowLabels
104. spellCheck
105. split
106. start
107. status
108. toggleCollapsed
109. toggleTextStyle
110. unmarkdown
111. undo
112. uninclude
113. updateInclusions
114. viewObject
115. webSearch
115.1. Declaring search engines
116. wrap
117. xIncludeText
118. xpathSearch
119. XXE.close
120. XXE.compare
121. XXE.edit
122. XXE.editInclusion
123. XXE.masterDocumentControl
124. XXE.new
125. XXE.open
126. XXE.save
127. XXE.saveAll
128. XXE.setReadOnly
129. XXE.saveAs
130. A generic, parameterizable, table editor command
A. Description of the XML differencing algorithm implemented by the Compare tool
1. Comparison with other approaches
2. Elements are given serial numbers
3. A simple XML differencing algorithm
B. Format of the revision history
List of Figures
6.1. The "Document conversion parameters" panel once expanded
List of Examples
3.1. Whatever the configuration, add extra menu items to the right-click, contextual, popup menu
3.2. DITA topic configuration: when an image is selected, allow to edit it using a helper application
3.3. Any of the two XHTML 1.0 configurations: when some text is selected, display a special, simpler, popup menu
4.1. Using sequence and choice
4.2. Macro-variables
4.3. The "%_" macro-variable
4.4. Using the fail construct
4.5. Using the XPath-based constructs match and set
4.6. A contextual drop
4.7. Insert nodes copied from another document
4.8. Convert a DocBook 5 para to a formalpara
6.1. XHTML example
6.2. TEI example
6.3. XHTML checkExternalRefs property
6.4. DITA checkExternalRefs property
6.5. TEI Lite checkExternalRefs property
6.6. DocBook 5+ checkExternalRefs property
6.7. XHTML listItemSpecification
6.8. DITA listItemSpecification
6.9. DocBook 5 listItemSpecification
6.10. TEI listItemSpecification
6.11. LwDITA listItemSpecification
6.12. Implementing a “click to follow link” facility using executeMenuItem
6.13. MathML example
6.14. DocBook 4 Markdown mapping
6.15. XHTML Markdown mapping