1XML::DOM::CharacterDataU(s3e)r Contributed Perl DocumentaXtMiLo:n:DOM::CharacterData(3)
2
3
4

NAME

6       XML::DOM::CharacterData - Common interface for Text, CDATASections and
7       Comments
8

DESCRIPTION

10       XML::DOM::CharacterData extends XML::DOM::Node
11
12       The CharacterData interface extends Node with a set of attributes and
13       methods for accessing character data in the DOM. For clarity this set
14       is defined here rather than on each object that uses these attributes
15       and methods. No DOM objects correspond directly to CharacterData,
16       though Text, Comment and CDATASection do inherit the interface from it.
17       All offsets in this interface start from 0.
18
19       METHODS
20
21       getData and setData (data)
22           The character data of the node that implements this interface. The
23           DOM implementation may not put arbitrary limits on the amount of
24           data that may be stored in a CharacterData node. However, implemen‐
25           tation limits may mean that the entirety of a node's data may not
26           fit into a single DOMString. In such cases, the user may call sub‐
27           stringData to retrieve the data in appropriately sized pieces.
28
29       getLength
30           The number of characters that are available through data and the
31           substringData method below. This may have the value zero, i.e.,
32           CharacterData nodes may be empty.
33
34       substringData (offset, count)
35           Extracts a range of data from the node.
36
37           Parameters:
38            offset  Start offset of substring to extract.
39            count   The number of characters to extract.
40
41           Return Value: The specified substring. If the sum of offset and
42           count exceeds the length, then all characters to the end of the
43           data are returned.
44
45       appendData (str)
46           Appends the string to the end of the character data of the node.
47           Upon success, data provides access to the concatenation of data and
48           the DOMString specified.
49
50       insertData (offset, arg)
51           Inserts a string at the specified character offset.
52
53           Parameters:
54            offset  The character offset at which to insert.
55            arg     The DOMString to insert.
56
57       deleteData (offset, count)
58           Removes a range of characters from the node.  Upon success, data
59           and length reflect the change.  If the sum of offset and count
60           exceeds length then all characters from offset to the end of the
61           data are deleted.
62
63           Parameters:
64            offset  The offset from which to remove characters.
65            count   The number of characters to delete.
66
67       replaceData (offset, count, arg)
68           Replaces the characters starting at the specified character offset
69           with the specified string.
70
71           Parameters:
72            offset  The offset from which to start replacing.
73            count   The number of characters to replace.
74            arg     The DOMString with which the range must be replaced.
75
76           If the sum of offset and count exceeds length, then all characters
77           to the end of the data are replaced (i.e., the effect is the same
78           as a remove method call with the same range, followed by an append
79           method invocation).
80
81
82
83perl v5.8.8                       2002-02-08        XML::DOM::CharacterData(3)
Impressum