Editing the XML Content
By default you can type only in elements which accept text content. So if the element is
declared as empty or element only in the associated schema you are not allowed to insert text
in it. This is also available if you try to insert CDATA inside an element.
Instead a warning message is shown:
Figure: Editing in empty element warning
You can disable this behavior by checking the Allow Text in empty or element only
content check box in the Author preferences
page.
Entire sections or chunks of data can be moved or copied by using the drag and drop support.
The following situations can be encountered:
- when both the drag and drop sources are Author pages, an well-formed XML fragment is
transferred. The section is balanced before dropping it by adding matching tags when
needed.
- when the drag source is the Author page but the drop target is a text-based editor only
the text inside the selection is transferred as it is.
- the text dropped from another text editor or another application into the Author page is
inserted without changes.
Removing the Text Content of the Current Element
You can remove the text content of the current element and keep only the markup by
highlighting the appropriate block of content and use the
Remove Text action
that is available in the Refactoring submenu of the contextual
menu and in the menu. This is useful when the markup of an element must be preserved,
for example a table structure but the text content must be replaced.
Duplicating Elements with Existing IDs
If the Auto generate
IDs for elements option (available in the ID Options
dialog box from DITA, DocBook and TEI document types) is disabled and you duplicate elements
with existing IDs, the duplicates lose these IDs. If the previously mentioned option is
active, when you duplicate content, Oxygen XML Editor makes sure that if there is an ID
attribute set in the XML markup, the newly created duplicate has a new, unique ID attribute
value. The option Remove IDs when copying content in the same document
allows you to control if a pasted element should retain its ID.