Click to return to the XML (Extensible Markup Language) home page    
XMLDOMText Object    
Web Workshop  |  XML (Extensible Markup Language)

splitText Method


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

[ Object Name ]
PlatformVersion
Win16:
Win32:
Mac:
Unix:
WinCE:
XMLDOMCDATASection, XMLDOMText


Back to topBack to top

Did you find this topic useful? Suggestions for other topics? Write us!

© 1999 Microsoft Corporation. All rights reserved. Terms of use.