XML::DOM::CharacterData



XML::DOM::CharacterData

NAME
DESCRIPTION

NAME

XML::DOM::CharacterData − Common interface for Text, CDATASections and Comments

DESCRIPTION

XML::DOM::CharacterData extends XML::DOM::Node

The CharacterData interface extends Node with a set of attributes and methods for accessing character data in the DOM . For clarity this set is defined here rather than on each object that uses these attributes and methods. No DOM objects correspond directly to CharacterData, though Text, Comment and CDATASection do inherit the interface from it. All offsets in this interface start from 0.

METHODS
getData and setData (data)

The character data of the node that implements this interface. The DOM implementation may not put arbitrary limits on the amount of data that may be stored in a CharacterData node. However, implementation limits may mean that the entirety of a node’s data may not fit into a single DOMString. In such cases, the user may call substringData to retrieve the data in appropriately sized pieces.

getLength

The number of characters that are available through data and the substringData method below. This may have the value zero, i.e., CharacterData nodes may be empty.

substringData (offset, count)

Extracts a range of data from the node.

Parameters:
offset
Start offset of substring to extract.
count
The number of characters to extract.

Return Value: The specified substring. If the sum of offset and count exceeds the length, then all characters to the end of the data are returned.

appendData (str)

Appends the string to the end of the character data of the node. Upon success, data provides access to the concatenation of data and the DOMString specified.

insertData (offset, arg)

Inserts a string at the specified character offset.

Parameters:
offset
The character offset at which to insert.
arg
The DOMString to insert.

deleteData (offset, count)

Removes a range of characters from the node. Upon success, data and length reflect the change. If the sum of offset and count exceeds length then all characters from offset to the end of the data are deleted.

Parameters:
offset
The offset from which to remove characters.
count
The number of characters to delete.

replaceData (offset, count, arg)

Replaces the characters starting at the specified character offset with the specified string.

Parameters:
offset
The offset from which to start replacing.
count
The number of characters to replace.
arg
The DOMString with which the range must be replaced.

If the sum of offset and count exceeds length, then all characters to the end of the data are replaced (i.e., the effect is the same as a remove method call with the same range, followed by an append method invocation).



More Linux Commands

manpages/wacom.4.html
wacom(4) - Wacom input driver (Special - Linux man page)....
wacom is an X input driver for Wacom devices. The wacom driver functions as a pointer input device. SUPPORTED HARDWARE This driver supports the Wacom IV and Wac

manpages/clearenv.3.html
clearenv(3) - clear the environment - Linux manual page.....
The clearenv() function clears the environment of all name-value pairs and sets the value of the external variable environ to NULL. RETURN VALUE The clearenv()

manpages/logresolve2.8.html
logresolve2(8) - Resolve IP-addresses to hostnames in Apache
logresolve2.8 - logresolve is a post-processing program to resolve IP-addresses in Apaches access logfiles. To minimize impact on your nameserver, logresolve ha

manpages/XChangeWindowAttributes.3.html
XChangeWindowAttributes(3) - change window attributes.......
Depending on the valuemask, the XChangeWindowAttributes function uses the window attributes in the XSetWindowAttributes structure to change the specified window

manpages/useradd.8.html
useradd(8) - create a new user account - Linux manual page
When invoked without the -D option, the useradd command creates a new user account using the values specified on the command line plus the default values from t

manpages/pread64.2.html
pread64(2) - read from or write to a file descriptor at a gi
pread() reads up to count bytes from file descriptor fd at offset offset (from the start of the file) into the buffer starting at buf. The file offset is not ch

manpages/fflush.3.html
fflush(3) - flush a stream (Library - Linux man page).......
For output streams, fflush() forces a write of all user-space buffered data for the given output or update stream via the streams underlying write function. For

manpages/glVertex4d.3gl.html
glVertex4d(3gl) - specify a vertex - Linux manual page......
glVertex commands are used within glBegin/glEnd pairs to specify point, line, and polygon vertices. The current color, normal, and texture coordinates are assoc

manpages/getspnam_r.3.html
getspnam_r(3) - get shadow password file entry (Man Page)...
Long ago it was considered safe to have encrypted passwords openly visible in the password file. When computers got faster and people got more security-consciou

manpages/machine-info.5.html
machine-info(5) - Local machine information file (Man Page)
The /etc/machine-info file contains machine metadata. The basic file format of machine-info is a newline-separated list of environment-like shell-compatible var

manpages/locale.alias.5.html
locale.alias(5) - Locale name alias data base (Man Page)....
The locale.alias database file (/usr/share/locale/locale.alias) is used by the locale command and the X Window System It describes aliases for the locales, with

manpages/twopi.1.html
twopi(1) - filter for radial layouts of graphs (Man Page)...
These are a collection of programs for drawing graphs. There is actually only one main program; the specific layout algorithms implemented as plugins. Thus, the





We can't live, work or learn in freedom unless the software we use is free.