About nodeValue
"If the object is a TextNode, the nodeValue property returns a
string representing the text contained by the node. If the object is an element, the nodeValue returns null."
So message.nodeValue is null;
<mes1>ashok</mes1>------ "ashok" is a TextNode,but not "<mes1>ashok</mes1>"
------------------------------------------------------
please care the method to creat a xmlnode:
var createTexttitle=xmlDoc.createTextNode(titletext);
var createTitle=xmlDoc.createElement("title");
createTitle.appendChild(createTexttitle);
------------------------------------------------------
can you tell me what is the "message.childNodes[0]"?
sure ,It is not a TextNode just like "<mes1>ashok</mes1>"
you can write like this :"message.childNodes[0].firstChild.nodeValue"
[ August 13, 2006: Message edited by: snowwolf ]
[ August 14, 2006: Message edited by: Liu Zhixiang ]