Unicorn XML Toolkit
Version 1.50.00

Namespace Dom
Class ICharacterData

class ICharacterData: public INode {
public:
    const WCHAR *GetData();
    void SetData(const WCHAR *pszData);
    int GetLength();
public:
    CString SubstringData(int nOffset, int nCount);
    void AppendData(const WCHAR *pszArg);
    void InsertData(int nOffset, const WCHAR *pszArg);
    void DeleteData(int nOffset, int nCount);
    void ReplaceData(
        int nOffset, 
        int nCount, 
        const WCHAR *pszArg);
    };
typedef XRefCnt<ICharacterData> XCharacterData;

The character data node.

This class implements the C++ binding for the CharacterData interface specified by DOM.

Since:
1.00.00
Version:
1.50.00
Author:
Alexey Gokhberg
Function Summary
const�WCHAR�* GetData ();
����������Returns the content of this character data node.
void SetData (const WCHAR *pszData);
����������Sets the new content of this character data node.
int GetLength ();
����������Returns the length of the content of this character data node.
CString SubstringData (int nOffset, int nCount);
����������Returns the part of the content of this character data node, specified by the offset nOffset and length nCount .
void AppendData (const WCHAR *pszArg);
����������Appends data to the end of the content of this character data node.
void InsertData (int nOffset, const WCHAR *pszArg);
����������Inserts data into the content of this character data node at the offset specified by nOffset .
void DeleteData (int nOffset, int nCount);
����������Deletes part of the content of this character data node at the offset specified by nOffset with the length specified by nCount .
void ReplaceData (int nOffset, int nCount, const WCHAR *pszArg);
����������Replaces part of the content of this character data node at the offset specified by nOffset having the length specified by nCount .

Function Detail

GetData

const WCHAR *GetData();

Returns the content of this character data node.

This method implements the C++ binding for the data attribute specified by DOM.

Returns:
the content of this character data node

SetData

void SetData(const WCHAR *pszData);

Sets the new content of this character data node.

This method implements the C++ binding for the data attribute specified by DOM.

This method is not supported by XDM.

Parameters:
pszData - the new content of this character data node

GetLength

int GetLength();

Returns the length of the content of this character data node.

This method implements the C++ binding for the length attribute specified by DOM.

Returns:
the length of the content of this character data node

SubstringData

CString SubstringData(int nOffset, int nCount);

Returns the part of the content of this character data node, specified by the offset nOffset and length nCount .

This method implements the C++ binding for the substringData operation specified by DOM.

Parameters:
nOffset - the offset of the requested part of the content
nCount - the length of the requested part of the content
Returns:
the requested part of this character data node content

AppendData

void AppendData(const WCHAR *pszArg);

Appends data to the end of the content of this character data node.

This method implements the C++ binding for the appendData operation specified by DOM.

This method is not supported by XDM.

Parameters:
pszArg - the data to append

InsertData

void InsertData(int nOffset, const WCHAR *pszArg);

Inserts data into the content of this character data node at the offset specified by nOffset .

This method implements the C++ binding for the insertData operation specified by DOM.

This method is not supported by XDM.

Parameters:
nOffset - the offset at which to insert
pszArg - the data to insert

DeleteData

void DeleteData(int nOffset, int nCount);

Deletes part of the content of this character data node at the offset specified by nOffset with the length specified by nCount .

This method implements the C++ binding for the deleteData operation specified by DOM.

This method is not supported by XDM.

Parameters:
nOffset - the offset at which to delete
nCount - the length of the part to be deleted

ReplaceData

void ReplaceData(
    int nOffset,
    int nCount, 
    const WCHAR *pszArg);

Replaces part of the content of this character data node at the offset specified by nOffset having the length specified by nCount .

This method implements the C++ binding for the replaceData operation specified by DOM.

This method is not supported by XDM.

Parameters:
nOffset - the offset at which to replace
nCount - the length of the part to be replaced
pszArg - the replacement data

Unicorn XML Toolkit
Version 1.50.00


This document was created using Unicorn DOC++.

Copyright 1999-2001 Unicorn Enterprises SA.
All Rights Reserved.