|
|
XML::GDOME::CharacterData - Interface CharacterData implementation.
$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);
the XML::GDOME::Node manpage > XML::GDOME::CharacterData
arg: The string to append
GDOME_NO_MODIFICATION_ALLOWED_ERR: Raised when the node is readonly.
offset: The offset from which to start removing
count: The number of characters to delete.
GDOME_INDEX_SIZE_ERR: Raised if the specified offset is greater than the number of characters in data.
GDOME_NO_MODIFICATION_ALLOWED_ERR: Raised when the node is readonly.
offset: The character offset at which to insert
arg: The string to insert
GDOME_INDEX_SIZE_ERR: Raised if the specified offset is greater than the number of characters in data.
GDOME_NO_MODIFICATION_ALLOWED_ERR: Raised when the node is readonly.
offset: The offset from which to start replacing
count: The number of characters to replace.
arg: The String with which the range must be replaced
GDOME_INDEX_SIZE_ERR: Raised if the specified offset is greater than the number of characters in data.
GDOME_NO_MODIFICATION_ALLOWED_ERR: Raised when the node is readonly.
offset: Start offset of substring to extract
count: The number of characters to extract
Returns: The specified substring. If the sum of offset and count exceeds the length, then all characters to the end of the data are returned.
GDOME_INDEX_SIZE_ERR: Raised if the specified offset is greater than the number of characters in data.