The Copy XPointer command is available in Text View and Grid View. It creates an element() scheme XPointer for the currently selected node/s and copies it to the clipboard. This enables you to paste the XPointer into a document (for example, in the xpointer attribute of an XInclude element in an XML document).
The element() scheme of XPointer returns results in the form element(/1/3). This XPointer selects the third child of the document element (aka root element). You should note the following points:
•Attributes cannot be represented using the element() scheme. If an attribute is selected in XMLSpy, the following happens: In Grid View, the Copy XPointer command is disabled; in Text View, the XPointer of the parent element of that attribute is generated.
•XPointers for multiple elements cannot be generated. If multiple elements are selected, the situation is resolved as follows: In Grid View, the Copy XPointer command is disabled. In Text View, the XPointer of the parent element of the selection is generated.
|Note:||In Grid View the Copy XPointer command can also be accessed via the context menu.|