Microsoft XML 2.5 SDK


 

splitText Method

[This is preliminary documentation and subject to change.]

Breaks this text node into two text nodes at the specified offset and inserts the new text node into the tree as a sibling that immediately follows this node.

Syntax

objXMLDOMText = oXMLDOMText.splitText(offset)

Parameters

offset

Long integer. Number of characters at which to split this text node into two nodes, starting from zero.

Returns

Object. Returns the new text node.

Remarks

If you specify an offset of zero, the first text node is empty and the right-hand text node contains the previous contents of the node. If you specify an offset beyond the end of the string, a new, empty right-hand text node is created.

Applies To

XMLDOMCDATASection, XMLDOMText