T
tomicmilan
I have this HTML:
<html>
<head>
<style type="text/css">
xml {display: none;}
</style>
<script language="JavaScript">
function test() {
alert(document.getElementById("zahtevek").innerHTML);
}
</script>
</head>
<body>
<div><xml id="zahtevek"><cdocument xmlns:cd="http://
Document"><cdata Id="Data"/></cdocument></xml></div>
<input type="button" name="Test" value="Test" onclick="test()">
</body>
</html>
Well, the problem is that innerHTML returns lower case XML
(cd:document instead of cdocument...) and I need to preserve XML (it
shouldn't be modified in any way).
What should I do?
<html>
<head>
<style type="text/css">
xml {display: none;}
</style>
<script language="JavaScript">
function test() {
alert(document.getElementById("zahtevek").innerHTML);
}
</script>
</head>
<body>
<div><xml id="zahtevek"><cdocument xmlns:cd="http://
Document"><cdata Id="Data"/></cdocument></xml></div>
<input type="button" name="Test" value="Test" onclick="test()">
</body>
</html>
Well, the problem is that innerHTML returns lower case XML
(cd:document instead of cdocument...) and I need to preserve XML (it
shouldn't be modified in any way).
What should I do?