代码示例:(标识:xdom_element_removeattributens)
<html>
<head>
<script type="text/javascript" src="/static/demo/html/js/loadxmldoc.js">
</script>
</head>
<body>
<script type="text/javascript">
xmlDoc=loadXMLDoc("/static/demo/xdom/books_ns.xml");
x=xmlDoc.getElementsByTagName("title")[0];
ns="http://www.sou-xun.com/children/";
document.write("Attribute Found: ");
document.write(x.hasAttributeNS(ns,"lang"));
x.removeAttributeNS(ns,"lang");
document.write("<br />Attribute Found: ");
document.write(x.hasAttributeNS(ns,"lang"));
</script>
</body>
</html>