Hi all,
I have a XML file that among other things has the following node.
As you can see it contains HTML tags.
I want to append content of "page" tag into my html document.
With javascript, in Mozilla, I easily retrieve the content of the
XML "page" tag using the following line of code
var myHtml= xmlDoc.getEleme ntsByTagName('p aging')[0].innerHTML;
but in chrome and ie and other browser
do not work, resulting in myHTML being undefined.
Thanks for your help.
I have a XML file that among other things has the following node.
As you can see it contains HTML tags.
I want to append content of "page" tag into my html document.
Code:
<?xml version=""1.0"" encoding=""utf-8"" ?> <root> <page> <div class='clk'> <a href='...'>1</a> <a href='...'>2</a> <a href='...'>3</a> <a href='...'>4</a> . . . </div> </page> </root>
XML "page" tag using the following line of code
var myHtml= xmlDoc.getEleme ntsByTagName('p aging')[0].innerHTML;
but in chrome and ie and other browser
do not work, resulting in myHTML being undefined.
Thanks for your help.
Comment