Hallo,
Kommando zurück! Wenn die test.xhtml
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Beschreibung der Seite</title>
</head>
<body>
<select name="list_name" size="1">
<option value="value1">Text1</option>
<option value="value2">Text2</option>
<option value="value3">Text3</option>
<option value="value4">Text4</option>
</select>
</body>
</html>
enthält und auch als application/xhtml+xml ausgeliefert wird, funktioniert das
document.getElementById("insert_tag").replaceChild(document.importNode(myXMLSelect, true), document.getElementById("insert_tag").firstChild);
doch wie erwartet. ;-)
viele Grüße
Axel