You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-users@xerces.apache.org by ma...@cnedi69.cnafmail.fr on 2001/06/01 11:06:17 UTC

how adding CDATA

Hi,

I've got a DOM "empty" document (document with empty elements), and I'd
like to add the content of the elements :
which method must I use ??

thank you


---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-j-user-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-j-user-help@xml.apache.org


Re: how adding CDATA

Posted by Zhaohua Meng <me...@hotlens.com>.
You can do something like this:

yourDoc.appendChild(yourElem.appendChild(yourDoc.createElement
("body")));



Zhaohua Meng

Hotlens.com Inc.
http://www.hotlens.com

350 Fifth AVE
Suite 3113
New York, NY 10118
Phone: 212-465-1700
Fax:   212-465-1710
email: mengzh@hotlens.com


-----Original Message-----
From: manuel.paitreault@cnedi69.cnafmail.fr
To: xerces-j-user@xml.apache.org
Date: Fri, 1 Jun 2001 11:06:17 +0200
Subject: how adding CDATA

> Hi,
> 
> I've got a DOM "empty" document (document with empty elements), and
> I'd
> like to add the content of the elements :
> which method must I use ??
> 
> thank you
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: xerces-j-user-unsubscribe@xml.apache.org
> For additional commands, e-mail: xerces-j-user-help@xml.apache.org
> 



---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-j-user-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-j-user-help@xml.apache.org