《XMLDOM对象方法手册》

中国标准XML》XML系列电子书   http://www.cnsxml.com  | XML资料库 |

  createAttribute 方法
 
 

 作   用

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

 基本语法

 xmlDocument.createAttribute(name);

 

说   明

 name 是被建立属性的名称。

 

范   例

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

 

中国标准XML 版权所有
欢迎访问 www.cnsxml.com  中国XML资料库