How, with javascript, can i read Childnode content on an XML file that contains html tags
- by Joe
to read a child node content i use :
MYDATA = xhr.responseXML.getElementsByTagName("MenuItem")
[INDEX].getElementsByTagName("PageContent")[0].childNodes[0].nodeValue;
sometimes when the childnode data contains an HTML tag (eg b or br tags, because they have the <), i have problems since they are counted like xml tags (like childnodes).
my question is how to get the entire data from a child node even if it contains other html tags
exp :
MenuItem
MenuText menu b text b MenuText
MenuItem
would return "menu" !!! but i want it to return :"menu text"
thank you guys, and happy new year