Loading TOC...

CharacterData.substring

CharacterData.substring(
   $offset as Number,
   $count as Number
) as Number

Summary

A substring of the character data, starting at a given offset and continuing for a given length.

Parameters
$offset The starting position.
$count The length of the substring to return.

Usage Notes

The offset and count should be non-negative integers. An error will be raised if they are not.

It is an error for the offset plus the count is more than the size of the data.

Example

cts.doc("example.xml").root.firstChild.substring(2,5)

Comments

    Powered by MarkLogic Server 7.0-4.1 and rundmc | Terms of Use | Privacy Policy