XML::DOM::Text
NAMEDESCRIPTION
NAME
XML::DOM::Text − A piece of XML text in XML::DOM
DESCRIPTION
XML::DOM::Text extends XML::DOM::CharacterData, which extends XML::DOM::Node.
The Text interface represents the textual content (termed character data in XML ) of an Element or Attr. If there is no markup inside an element’s content, the text is contained in a single object implementing the Text interface that is the only child of the element. If there is markup, it is parsed into a list of elements and Text nodes that form the list of children of the element.
When a document is first made available via the DOM , there is only one Text node for each block of text. Users may create adjacent Text nodes that represent the contents of a given element without any intervening markup, but should be aware that there is no way to represent the separations between these nodes in XML or HTML , so they will not (in general) persist between DOM editing sessions. The normalize() method on Element merges any such adjacent Text objects into a single node for each block of text; this is recommended before employing operations that depend on a particular document structure, such as navigation with XPointers.
METHODS
splitText (offset)
Breaks this Text node into two Text nodes at the specified offset, keeping both in the tree as siblings. This node then only contains all the content up to the offset point. And a new Text node, which is inserted as the next sibling of this node, contains all the content at and after the offset point.
Parameters:
offset The offset at which to split, starting from
0.
Return Value: The new Text node.
DOMExceptions:
• |
INDEX_SIZE_ERR |
Raised if the specified offset is negative or greater than the number of characters in data.
• |
NO_MODIFICATION_ALLOWED_ERR |
Raised if this node is readonly.
More Linux Commands
manpages/optionRestore.3.html
optionRestore(3) restore option state from memory copy......
Copy back the option state from saved memory. The allocated memory is left intact, so this routine can be called repeatedly without having to call optionSaveSta
manpages/domainname.1.html
domainname(1) - show or set the system's NIS/YP domain name
Hostname is the program that is used to either set or display the current host, domain or node name of the system. These names are used by many of the networkin
manpages/snmp_read.3.html
snmp_read(3) - netsnmp_session_api functions (Man Page).....
Snmp_sess_init prepares a netsnmp_session that sources transport characteristics and common information that will be used for a set of SNMP transactions. After
manpages/seek.n.html
seek(n) - Change the access position for an open channel....
Changes the current access position for channelId. ChannelId must be an identifier for an open channel such as a Tcl standard channel (stdin, stdout, or stderr)
manpages/accept4.2.html
accept4(2) - accept a connection on a socket (Man Page).....
The accept() system call is used with connection-based socket types (SOCK_STREAM, SOCK_SEQPACKET). It extracts the first connection request on the queue of pend
manpages/amavisd-milter.8.html
amavisd-milter(8) - sendmail milter for amavisd-new.........
The amavisd-milter is a sendmail milter (mail filter) for amavisd-new 2.4.3 and above and sendmail 8.13 and above (limited support for 8.12 is provided). Instea
manpages/dfutool.1.html
dfutool(1) - Device Firmware Upgrade utility (Man Page).....
dfutool is used to verify, archive and upgrade firmware files. OPTIONS -h Gives a list of possible commands. -d <device> The command specifies the device to use
manpages/getwc_unlocked.3.html
getwc_unlocked(3) - nonlocking stdio functions (Man Page)...
Each of these functions has the same behavior as its counterpart without the _unlocked suffix, except that they do not use locking (they do not set locks themse
manpages/pcre32_config.3.html
pcre32_config(3) Perl-compatible regular expressions........
This function makes it possible for a client program to find out which optional features are available in the version of the PCRE library it is using. The argum
manpages/gnutls_db_check_entry.3.html
gnutls_db_check_entry(3) - API function - Linux manual page
Check if database entry has expired. This function is to be used when you want to clear unnesessary session which occupy space in your backend. RETURNS Returns
manpages/avahi-daemon.conf.5.html
avahi-daemon.conf(5) - avahi-daemon configuration file......
avahi-daemon.conf is the configuration file for avahi-daemon. SECTION [SERVER] host-name= Set the host name avahi-daemon tries to register on the LAN. If omited
manpages/curl_formget.3.html
curl_formget(3) - serialize a previously built multipart/for
curl_formget() is used to serialize data previously built/appended with curl_formadd(3). Accepts a void pointer as second argument named userp which will be pas
