xcopy

Usage

xcopy xpath location xpath

Aliases

xcp

Description

xcopy is similar to copy, but copies *all* nodes matching the first xpath to *all* destinations determined by the location directive relative to the second xpath. See copy for detailed description of xcopy arguments.

Example 33. Copy all middle-earth creatures within the document a into every world of the document b.

xsh> xcopy a:/middle-earth/creature into b://world