Titanium.XML.CharacterData.deleteData

Platform Since
Android 0.9
iPhone 0.9
iPad 0.9

Summary

Remove a range of characters from the node. Upon success, data and length reflect the change. Throws an exception if this node is readonly, if offset is negative, offset is beyond the data's length, or if count is negative.

Arguments

Name Type Summary
offset Number

The offset from which to start removing.

count Number

The number of characters to delete. If the sum of offset and count exceeds length then all characters from offset to the end of the data are deleted.

Return Type

void