XPathResult.SnapshotItem

Syntax:

SnapshotItem(<Index>)

Parameters:

<Index> (required)

Type: Number.
Node index in a snapshot.

Returned value:

Type: DOMAttribute, DOMDocument, DOMElement, DOMDocumentType, DOMNotation, DOMEntity, DOMDocumentFragment, DOMText, DOMComment, DOMCDATASection, DOMProcessingInstruction, DOMEntityReference, XPathNamespace; Undefined.
If the next node does not exist, Undefined is retrieved.

Description:

Retrieves a node of the node set for the result by index.

Availability:

Server, thick client, external connection, Mobile application (server).

Note:

If the node type is not equal to UnorderedNodeSnapshot or OrderedNodeSnapshot, an exception is called.

    

1C:Enterprise Developer's Community