=head1 NAME XML::GDOME::CharacterData - Interface CharacterData implementation. =head1 SYNOPSIS $str = $cd->getData(); $cd->setData($str); $int = $cd->getLength(); $cd->appendData($arg); $cd->deleteData($offset,$count); $cd->insertData($offset,$arg); $cd->replaceData($offset,$count,$arg); $str = $cd->substringData($offset,$count); =head1 CLASS INHERITANCE L > XML::GDOME::CharacterData =head1 METHODS =over 4 =item $str = $cd->getData(); I: the character data of the node that implements this interface. =item $int = $cd->getLength(); I: The number of characters that are available. This may have the value zero, i.e., CharacterData nodes may be empty. =item $cd->appendData($arg); Append the string to the end of the character data of the node. Upon success, data provides access to the concatenation of data and the string specified. I>: The string to append C: Raised when the node is readonly. =item $cd->deleteData($offset,$count); Remove a range of characters from the node. If the sum of I and I exceeds length then all characters from I to the end of the data are deleted. Upon success, data and length reflect the change. I>: The offset from which to start removing I>: The number of characters to delete. C: Raised if the specified offset is greater than the number of characters in data. C: Raised when the node is readonly. =item $cd->insertData($offset,$arg); Insert a string at the specified character offset. I>: The character offset at which to insert I>: The string to insert C: Raised if the specified offset is greater than the number of characters in data. C: Raised when the node is readonly. =item $cd->replaceData($offset,$count,$arg); Replace the characters starting at the specified character I with the specified string. If the sum of I and I exceeds length, then all characters to the end of the data are replaced; I>: The offset from which to start replacing I>: The number of characters to replace. I>: The String with which the range must be replaced C: Raised if the specified I is greater than the number of characters in data. C: Raised when the node is readonly. =item $str = $cd->substringData($offset,$count); Extracts a range of data from the node. I>: Start offset of substring to extract I>: The number of characters to extract I: The specified substring. If the sum of I and I exceeds the length, then all characters to the end of the data are returned. C: Raised if the specified I is greater than the number of characters in data. =back