GXmlxCharacterData

GXmlxCharacterData — CharacterData defines an interface for manipulating XML character data.

Functions

Types and Values

Description

It is used by the GXmlxCDATASection, GXmlText, and GXmlComment node types.

Version: DOM Level 1 Core

URL: http://www.w3.org/TR/DOM-Level-1/level-one-core.html#ID-FF21A306

Functions

gxml_xcharacter_data_substring_data ()

gchar *
gxml_xcharacter_data_substring_data (GXmlxCharacterData *self,
                                     gulong offset,
                                     gulong count);

Retrieves a substring of the character data count-characters long, starting from the character at offset.

Version: DOM Level 1 Core URL: http://www.w3.org/TR/REC-DOM-Level-1/level-one-core.html#ID-6531BCCF

Parameters

self

the GXmlxCharacterData instance

 

offset

 

 

count

 

 

gxml_xcharacter_data_append_data ()

void
gxml_xcharacter_data_append_data (GXmlxCharacterData *self,
                                  const gchar *new_segment);

Appends new_segment to the end of the character data.

Version: DOM Level 1 Core URL: http://www.w3.org/TR/REC-DOM-Level-1/level-one-core.html#ID-32791A2F

Parameters

self

the GXmlxCharacterData instance

 

new_segment

 .

The new data that will be appended at the end

.

[in]

gxml_xcharacter_data_insert_data ()

void
gxml_xcharacter_data_insert_data (GXmlxCharacterData *self,
                                  gulong offset,
                                  const gchar *new_segment);

Inserts new_segment into the character data at offset.

Version: DOM Level 1 Core URL: http://www.w3.org/TR/REC-DOM-Level-1/level-one-core.html#ID-3EDB695F

Parameters

self

the GXmlxCharacterData instance

 

offset

 .

The index where the new data will be inserted

.

[in]

new_segment

 .

The new data to be inserted

.

[in]

gxml_xcharacter_data_delete_data ()

void
gxml_xcharacter_data_delete_data (GXmlxCharacterData *self,
                                  gulong offset,
                                  gulong count);

Deletes a range of characters, count-characters long, starting from offset.

Version: DOM Level 1 Core URL: http://www.w3.org/TR/REC-DOM-Level-1/level-one-core.html#ID-7C603781

Parameters

self

the GXmlxCharacterData instance

 

offset

 .

The index of the first character in the range to be deleted

.

[in]

count

 .

The length in characters of the range to be deleted

.

[in]

gxml_xcharacter_data_replace_data ()

void
gxml_xcharacter_data_replace_data (GXmlxCharacterData *self,
                                   gulong offset,
                                   gulong count,
                                   const gchar *new_segment);

Replaces a range of characters, count-characters long, starting at offset, with new_segment.

Version: DOM Level 1 Core URL: http://www.w3.org/TR/REC-DOM-Level-1/level-one-core.html#ID-E5CBA7FB

Parameters

self

the GXmlxCharacterData instance

 

offset

 .

The index of the first character in the range that will be replaced

.

[in]

count

 .

The length in characters of the range that will be replaced

.

[in]

new_segment

 .

The text that will be added

.

[in]

gxml_xcharacter_data_get_data ()

const gchar *
gxml_xcharacter_data_get_data (GXmlxCharacterData *self);

Get and return the current value of the "data" property.

The character data in string form for the node. Generally equivalent to node_value.

Version: DOM Level 1 Core URL: http://www.w3.org/TR/REC-DOM-Level-1/level-one-core.html#ID-72AB8359

Parameters

self

the GXmlxCharacterData instance to query

 

Returns

the value of the "data" property


gxml_xcharacter_data_set_data ()

void
gxml_xcharacter_data_set_data (GXmlxCharacterData *self,
                               const gchar *value);

Set the value of the "data" property to value .

The character data in string form for the node. Generally equivalent to node_value.

Version: DOM Level 1 Core URL: http://www.w3.org/TR/REC-DOM-Level-1/level-one-core.html#ID-72AB8359

Parameters

self

the GXmlxCharacterData instance to modify

 

value

the new value of the "data" property

 

gxml_xcharacter_data_get_length ()

gulong
gxml_xcharacter_data_get_length (GXmlxCharacterData *self);

Get and return the current value of the "length" property.

The number of characters.

Version: DOM Level 1 Core URL: http://www.w3.org/TR/REC-DOM-Level-1/level-one-core.html#ID-7D61178C

Parameters

self

the GXmlxCharacterData instance to query

 

Returns

the value of the "length" property

Types and Values

GXML_TYPE_XCHARACTER_DATA

#define GXML_TYPE_XCHARACTER_DATA (gxml_xcharacter_data_get_type ())

The type for GXmlxCharacterData.


struct GXmlxCharacterData

struct GXmlxCharacterData {
	GXmlBackedNode parent_instance;
	GXmlxCharacterDataPrivate * priv;
};

CharacterData defines an interface for manipulating XML character data.

It is used by the GXmlxCDATASection, GXmlText, and GXmlComment node types.

Version: DOM Level 1 Core

URL: http://www.w3.org/TR/DOM-Level-1/level-one-core.html#ID-FF21A306


struct GXmlxCharacterDataClass

struct GXmlxCharacterDataClass {
	GXmlBackedNodeClass parent_class;
};

The class structure for GXML_TYPE_XCHARACTER_DATA. All the fields in this structure are private and should never be accessed directly.

Members