Next / Previous / Contents / TCC Help System / NM Tech homepage

9.2. CharacterData.deleteData()

Use this method to delete text from a CharacterData object C.

C.deleteData(offset, count)

The method removes count characters of C's content starting at index offset, counting from zero.

The offset must be less than the length of the data, or this method will raise an xml.dom.IndexSizeErr exception. However, if the count extends past the end of the string, all characters through the end of the string will be deleted.