CharacterData.length as Number
The length of the character data (codepoints).
cts.doc("example.xml").root.firstChild.length