« Example | Main | my rss2html.js »
Thursday, July 14, 2005
xmlText(node)
convert node to string.
for example
var xml="<data><v>text1</v><v>text2></v></data>";
var
dom=xmlParse(xml);
var text=xmlText(dom);
alert(text);
//
return "<data><v>text1</v><v>text2></v></data>"
xmlValue(node)
return text only value.
for example
var xml="<data><v>text1</v><v>text2></v></data>";
var
dom=xmlParse(xml);
var text=xmlValue(dom);
alert(text);
// return "text1text"