thanks for the reply, more explicitly this is what I'm doing
DOM_Element cChild = cDoc.createElement("Child");
cParent.appendChild(cChild);
sprintf( szTmp, "%d", nChild );
DOM_Text cChildVal = cDoc.createTextNode(szTmp);
cChild.appendChild(cChildVal);
which is giving me
<Child>10000
</Child>
(where nChild==10000)
referring to your comments below, it's not (1) or (2) and I've
tried (3) but can't see what I'm doing wrong.
I'm sure there's a very simple solution that I'm missing: I don't
understand why I'm not getting
<Child>10000</Child> ?
I appreciate your comments; could anybody veryify that the above
_should_ work as I want it to ?
sorry to ask such trivia on this forum!
Richard.
> 1) The content of the Text node you're inserting as a child
> might end in a Newline character.
>
> 2) There might be a second Text child which contains a
> newline character.
>
> 3) DOMPrint might be trying to be "helpful" and inserting a
> newline before
> the end tag.
>
> If you're sure it isn't (1) or (2), check DOMPrint's code for (3).
----------------------------------------------------------------------
The information contained in this e-mail is confidential and solely for
the intended addressee(s). Unauthorised reproduction, disclosure, modification,
and/or distribution of this email may be unlawful. If you have received
this email in error, please notify the sender immediately and delete it
from your system. The views expressed in this message do not necessarily
reflect those of LIFFE (Holdings) Plc or any of its subsidiary companies.
----------------------------------------------------------------------
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]