104. wrap
Prev | Chapter 6. Commands written in the Java™ programming language | Next

## 104. wrap

A variant of the convert command. The unique difference is that when a single element is selected, the selected element is given a new parent element.

Example:

<simpara id="p1">the <emphasis>little</emphasis> girl.</simpara>

wrapped in a ``note`` gives

<note>
<simpara id="p1">the <emphasis>little</emphasis> girl.</simpara>
</note>

This is different from command convert which can be used to ``morph'' selected element to another kind of element. For example, convert cannot wrap the above `simpara` in a `note` but can morph it to a `para`.

Examples:

    wrap
    wrap [implicitElement] div

Prev | Up | Next
103.1. Declaring search engines | Home | 105. xIncludeText