国产激情自拍_国产9色视频_丁香花在线电影小说观看 _久久久久国产精品嫩草影院

首頁 > 開發 > XML > 正文

jscript與vbscript 操作XML元素屬性的代碼

2024-09-05 20:55:01
字體:
來源:轉載
供稿:網友
Although attributes belong to a particular element, they are not considered child nodes of element nodes. Instead, they behave more like properties of IXMLDOMElement.

Most of the methods for working with attributes come from IXMLDOMElement. Attributes can be manipulated in the following ways.

Directly, through the getAttribute and setAttribute methods of IXMLDOMElement.

As named IXMLDOMAttribute nodes, with getAttributeNode and setAttributeNode.

As a set of nodes accessible through the attributes property and returned as an IXMLNamedNodeMap.

Examples
JScript
The following JScript example creates a new document containing a <memo> element, and then creates an attribute named author with a value of "Pat Coleman".
復制代碼 代碼如下:www.56wlw.com

var xmlDoc = new ActiveXObject("Msxml2.DOMDocument.3.0");
var rootElement=xmlDoc.createElement("memo");
rootElement.setAttribute("author", "Pat Coleman");
xmlDoc.appendChild(rootElement);


VBScript
復制代碼 代碼如下:www.56wlw.com

Set xmlDoc = CreateObject("Msxml2.DOMDocument.3.0")
Set rootElement=xmlDoc.createElement("memo")
rootElement.setAttribute("author", "Pat Coleman")
xmlDoc.appendChild(rootElement)


If you prefer to work with attribute nodes, you can create the attribute, and then create a text node to store its value. Attribute nodes can only contain text nodes and entity reference nodes. (If you need to create an attribute containing an entity reference, you must use this approach.)

Working with attribute nodes requires using the DOMDocument object to create attribute and text (and entity reference, if necessary) nodes before assigning the nodes to the element.

JScript
The following JScript code uses this approach to perform the same work as the preceding examples, creating a <memo> element with an author attribute holding the value "Pat Coleman".

復制代碼 代碼如下:www.56wlw.com

var xmlDoc = new ActiveXObject("Msxml2.DOMDocument.3.0");
var rootElement=xmlDoc.createElement("memo");
var memoAttribute=xmlDoc.createAttribute("author");
var memoAttributeText=xmlDoc.createTextNode("Pat Coleman");
memoAttribute.appendChild(memoAttributeText);
rootElement.setAttributeNode(memoAttribute);
xmlDoc.appendChild(rootElement);


VBScript
復制代碼 代碼如下:www.56wlw.com

Set xmlDoc = CreateObject("Msxml2.DOMDocument.3.0")
Set rootElement=xmlDoc.createElement("memo")
Set memoAttribute=xmlDoc.createAttribute("author")
Set memoAttributeText=xmlDoc.createTextNode("Pat Coleman")
memoAttribute.appendChild(memoAttributeText)
rootElement.setAttributeNode(memoAttribute)
xmlDoc.appendChild(rootElement)

發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
国产激情自拍_国产9色视频_丁香花在线电影小说观看 _久久久久国产精品嫩草影院
99福利在线| 免费午夜一级| h网址在线观看| 亚洲免费国产| 久热国产视频| 国产美女福利在线| 最近免费中文字幕在线第一页| 免费网站看黄yyy222| 日韩中文字幕久久久经典网| 香蕉视频在线观看网站| 欧美韩日国产| 好吊日视频在线观看| 国产大学生粉嫩无套流白浆| 在线观看国产视频| 麻豆av电影在线观看| 日韩亚洲一区中文字幕| 四虎成人精品在永久在线观看| 免费电影网站在线视频观看福利| 狠狠色丁香婷婷| 91精品大全| 久久99精品久久久久久野外| 国产三级在线免费| 国产天堂在线| 国产欧美日韩第一页| a√在线视频| 久久久久久国产视频| 国产成人天天5g影院| 九九热免费视频| 亚洲网站一区| 精品福利影院| 九九在线免费视频| 天海翼中文字幕| 91香蕉视频免费在线观看| 美女网站在线观看| 亚洲综合在线网| 91麻豆精品国产91久久| 最近中文字幕av免费高清 | 九九久久久2| 尤物在线视频观看| 69国产精品| 精品国产美女福利到在线不卡| 国产一二三区在线视频| 免费特级黄毛片| 亚洲一道本在线| 亚洲精品乱码电影在线观看| 精品999视频| 在线看黄网址| 日本成人a视频| 国产麻豆麻豆| 国产l精品国产亚洲区在线观看| 午夜视频免费在线观看| 日本中文字幕高清视频| 国产福利电影在线观看| 在线免费观看高清视频色| www在线播放| 日本中文字幕在线观看| 91欧洲在线视精品在亚洲| 精品国产一区二区三区不卡在线| 国产精品白浆流出视频| 在线免费观看污| 福利在线视频导航| 国产一级免费黄色片| 91麻豆精品国产91久久| www在线视频| 1区2区3区在线| 91久久精品国产性色| 欧美日韩国产亚洲沙发| 尤物网站在线| wwww在线观看| 国产aⅴ超薄肉色丝袜交足| 亚洲视频在线观看不卡| 天天av天天爽| 性色视频在线| 国产精品伦理一区二区三区 | 国产成人午夜电影| 欧美精品另类| 国产变态拳头交视频一区二区| 亚洲精品国自产拍在线观看| 黄色国产在线| 天天插天天狠天天透| 国产视频三级在线观看播放| jizz在线免费观看| 精品视频二区| 国产青草视频在线观看视频| 免费女人毛片视频| 国产精品入口麻豆电影| www.狠狠| 波多野结衣中文字幕久久| 中文av资源在线| 国产精品白浆视频免费观看| 福利资源在线久| 青草视频在线播放| 亚洲欧美精选| 四虎成人欧美精品在永久在线 | 成在在线免费视频| 免费不卡中文字幕视频| 日韩国产成人| eeuss影院在线播放| 亚洲大香人伊一本线| 精品福利视频导航大全| 99热在线免费播放| 五月婷婷导航| 91av资源在线| 国产一区二区影视| 国产视频中文字幕在线观看| 中文字幕视频在线| 国产欧美日韩第一页| 国产青青草在线| 国产精品视频一区二区三区麻豆 | 99re6在线视频精品免费| 国产福利在线观看| 国产精品久久久久久久牛牛| 国产一二区视频| 中文字幕不卡免费视频| 国产精品入口麻豆免费看| 国产精品美女一区二区三区四区| 国产区卡一卡二卡三乱码免费| 国产精品666| 亚洲永久免费网站| 九九热视频免费在线观看| 91caoporn在线| 91午夜视频| 热99re久久精品这里都是免费| 免费看成年人视频在线观看| 国产久草在线| 999精品网| 国产九九九九| av在线1区2区| 日本中文字幕视频| 国产激情视频在线| 在线免费看av| 国产麻豆精品视频一区二区| 国产二区三区在线| 精品孕妇一区二区三区| 国产精品jvid在线观看| 欧美亚洲另类在线观看| 国产日本视频| 欧美韩日国产| 91中文字幕| 国产美女被遭强高潮免费网站| 国产视频中文字幕| 国产在线拍揄自揄拍视频| 影音av资源站| 最新天堂资源在线资源| 欧美日韩久久中文字幕| 在线色视频网| 国产福利视频在线观看| 导航福利在线| 国产在线一二三| 免费在线黄色av| 一本大道五月香蕉| 97影院理论午夜| 18成年在线观看| 国产成人午夜电影| 国产一区二区三区福利| 国产在线三区| 国产卡一卡二卡三| 国产精品一区二区婷婷| 青青草免费在线观看| 亚洲图区欧美| 在线观看av网站永久| 国产成人综合美国十次| 国产一级免费看| 国产视频xxx| 中文字幕在线看精品乱码| 99视频免费| 国产精品美女视频免费观看软件 | 亚洲久草视频| 伊人福利在线| 永久免费网站在线| h网址在线观看| 欧美激情福利视频在线观看免费| 日本不卡影院| 国产免费麻豆视频| 国产网站免费观看| 91看片在线观看| 亚洲成人av在线影院| 免费一区二区在线观看| 中文字幕在线免费观看| 精品福利视频导航大全| 色悠久久久久综合网小说| 四虎成人精品在永久在线观看| 欧美艹逼视频| 国产精品久久人| 日本欧美在线视频免费观看| 黄网站在线观看高清免费| 国产亚洲精品自在线观看| 伊人伊人av电影| 导航福利在线| 亚洲色婷婷综合开心网| 日韩av成人| av在线天天| 国产区卡一卡二卡三乱码免费| 天天噜天天色| 国产区卡一卡二卡三乱码免费| av资源网站在线观看| 国产乱视频在线观看| 亚洲国产精品区| 国产黄色免费在线观看| 高清欧美精品xxxxx在线看|