《XMLDOM对象方法手册》

中国标准XML》XML系列电子书     | |

  createAttribute 方法
 
 

 作   用

 建立一个指定名称的属性。  

 基本语法

 xmlDocument.createAttribute(name);

 

说   明

 name 是被建立属性的名称。

 

范   例

objNewAtt = xmlDoc.createAttribute("encryption");
alert(objNewAtt.xml);