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

9.3. CharacterData.insertData()

This method inserts additional text from string s into the content of a CharacterData object C.

C.insertData(offset, s)

String s is inserted in C's content starting before the character that was at index offset.

The offset must be strictly less than the length of the string, or the method will raise an xml.dom.IndexSizeErr exception.