Text.substring( offset as Number, count as Number ) as Number
This is inherited from the CharacterData object.
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. |
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.
cts.doc("example.xml").root.firstChild.substring(2,5)
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.