Microsoft XML SDK 2.6 - XML Reference

IXMLDOMCharacterData::insertData Method

Inserts the supplied string at the specified offset.

Visual Basic Syntax

oXMLDOMCharacterData.insertData(offset, data)

C/C++ Syntax

HRESULT insertData(
    long offset,
    BSTR data);

Parameters

offset [in]
Offset, in characters, at which to insert the supplied string data.
data [in]
String data that is to be inserted into the existing string.

C/C++ Return Values

S_OK
Value returned if successful.
S_FALSE
Value when returning Null.
E_FAIL
Value returned if an error occurs.

Remarks

This operation also updates the length property.

See Also

IXMLDOMCharacterData Interface