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 displayed:

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:

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 Document > Markup 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.

Related information
Customizing Smart Paste Support