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

9.5. CharacterData.substringData()

To extract part of the textual data of a CharacterData object C, use this method:

C.substringData(offset, count)

The method returns the data from C's content starting at index offset and continuing for count characters.

The offset must be less than the length of the data, or the method will raise xml.dom.IndexSizeErr. If the count extends past the end of the data, the method will return the content of the data up to the end.