IXMLDOMNode Text Property

MaHo_77
MaHo_77 Member Posts: 2
Hi all

I want to create a xml document. I created a ixmldomnode and set his text property like this:

xmlNode := xmlDOM.createNode(1,'mail:htmldescription',XMLNS_MAIL);
xmlNode.text(
'<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">' +
'<HTML><HEAD>' + ...

Now I want to append some text to this property like this:
xmlNode.text(xmlNode.text + 'Additional Text');

On Compile I receive no error. But when I run the Code I receivethe following error:

The string buffer is insufficient because the string is too small.

I receive this error too when I want to show the text in an message box:
Message('%1', xmlnode.text);

The Variable declaration is like this:
xmlDOM Automation --> 'Microsoft XML, version 2.0'.DOMDocument
xmlNode Automation --> 'Microsoft XML, version 2.0'.IXMLDOMNode

Can anyone help me?
What do I wrong?

Thanx a lot.
Martin