How, with javascript, can i read Childnode content on an XML file that contains html tags
        Posted  
        
            by 
                Joe
            
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by Joe
        
        
        
        Published on 2010-12-31T15:51:02Z
        Indexed on 
            2010/12/31
            15:54 UTC
        
        
        Read the original article
        Hit count: 238
        
JavaScript
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
© Stack Overflow or respective owner