中文字幕免费精品_亚洲视频自拍_亚洲综合国产激情另类一区_色综合咪咪久久

jscript與vbscript 操作XML元素屬性的代碼
來源:易賢網 閱讀:1413 次 日期:2014-08-10 17:15:17
溫馨提示:易賢網小編為您整理了“jscript與vbscript 操作XML元素屬性的代碼”,方便廣大網友查閱!

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".

代碼如下:

var xmlDoc = new ActiveXObject("Msxml2.DOMDocument.3.0");

var rootElement=xmlDoc.createElement("memo");

rootElement.setAttribute("author", "Pat Coleman");

xmlDoc.appendChild(rootElement);

VBScript

代碼如下:

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".

代碼如下:

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

代碼如下:

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)

更多信息請查看IT技術專欄

更多信息請查看網絡編程
由于各方面情況的不斷調整與變化,易賢網提供的所有考試信息和咨詢回復僅供參考,敬請考生以權威部門公布的正式信息和咨詢為準!
關于我們 | 聯系我們 | 人才招聘 | 網站聲明 | 網站幫助 | 非正式的簡要咨詢 | 簡要咨詢須知 | 新媒體/短視頻平臺 | 手機站點

版權所有:易賢網

中文字幕免费精品_亚洲视频自拍_亚洲综合国产激情另类一区_色综合咪咪久久
久久99久久99小草精品免视看| 国产精品一二三在| 美女性感视频久久| 日韩精品一区二区三区视频播放| 美日韩黄色大片| 国产日产亚洲精品系列| 97久久超碰精品国产| 亚洲影院在线观看| 欧美成人女星排名| 91亚洲精华国产精华精华液| 亚洲成人av一区| 亚洲精品一线二线三线| 不卡的av中国片| 日韩精彩视频在线观看| 亚洲国产精品精华液2区45| 欧美系列亚洲系列| 国产v日产∨综合v精品视频| 亚洲综合在线视频| 久久一区二区三区四区| 91黄色小视频| 成人av影院在线| 免费精品视频在线| 国产精品的网站| 精品日本一线二线三线不卡| 一本久久综合亚洲鲁鲁五月天| 美女在线一区二区| 樱桃视频在线观看一区| 国产午夜精品一区二区 | 亚洲三级电影全部在线观看高清| 在线不卡免费欧美| 91免费看视频| 北条麻妃国产九九精品视频| 国产一区欧美日韩| 精品一区二区国语对白| 日本不卡一区二区| 亚洲成av人片一区二区梦乃 | 久久国产精品99久久久久久老狼| 亚洲精品一二三| 日韩美女精品在线| 国产精品精品国产色婷婷| 久久久www成人免费毛片麻豆| 88在线观看91蜜桃国自产| 欧洲色大大久久| 在线观看日韩精品| 91成人网在线| 欧美三级电影网| 欧美性受极品xxxx喷水| 色狠狠色狠狠综合| 在线一区二区视频| 在线观看区一区二| 欧美亚洲国产bt| 欧美精品在欧美一区二区少妇| 欧美亚洲综合久久| 91麻豆精品国产91久久久久久 | 欧美日韩国产美女| 7777精品伊人久久久大香线蕉超级流畅| 色94色欧美sute亚洲线路一久 | 欧美亚洲禁片免费| 制服丝袜亚洲网站| 日韩欧美国产综合| 久久午夜色播影院免费高清| 久久久精品欧美丰满| 国产欧美精品国产国产专区| 中文字幕一区视频| 亚洲一区在线视频| 免费人成在线不卡| 国产精品一线二线三线精华| k8久久久一区二区三区 | 久久综合国产精品| 中文字幕一区二区不卡| 亚洲国产日产av| 黄一区二区三区| 99久久精品国产导航| 欧美专区日韩专区| 26uuu欧美| 亚洲精品美腿丝袜| 久热成人在线视频| 99久久精品久久久久久清纯| 欧美日韩国产另类不卡| 久久九九影视网| 一区二区视频免费在线观看| 日韩av成人高清| 成人黄页毛片网站| 欧美一区二区三区在线看| 中文字幕欧美区| 日韩精品乱码av一区二区| 国产激情视频一区二区在线观看 | 不卡在线观看av| 欧美精品欧美精品系列| 国产亚洲精品中文字幕| 天天色综合成人网| 91碰在线视频| 久久久久国产精品免费免费搜索| 亚洲精品你懂的| 国产98色在线|日韩| 欧美高清激情brazzers| 国产精品久线在线观看| 久久精品国产秦先生| 欧美天堂一区二区三区| 亚洲特级片在线| 成人av在线观| 国产网站一区二区三区| 日韩电影免费在线观看网站| 色综合久久久久| 国产精品短视频| 不卡一区中文字幕| 中文字幕乱码久久午夜不卡| 久久av中文字幕片| 欧美一级国产精品| 视频一区二区三区中文字幕| 色综合色综合色综合色综合色综合| 欧美va亚洲va| 男男成人高潮片免费网站| 欧美调教femdomvk| 亚洲一区成人在线| 欧洲视频一区二区| 亚洲永久免费av| 欧美日韩中文国产| 图片区小说区国产精品视频| 欧美日韩亚洲综合在线| 亚洲123区在线观看| 欧美日本乱大交xxxxx| 天天操天天干天天综合网| 欧美最猛黑人xxxxx猛交| 亚洲一区二区成人在线观看| 色欧美日韩亚洲| 一卡二卡三卡日韩欧美| 欧美中文字幕一区二区三区亚洲| 国产精品免费视频网站| 成人aaaa免费全部观看| 亚洲视频资源在线| 在线看国产一区| 五月激情综合网| 日韩午夜在线观看视频| 韩国理伦片一区二区三区在线播放| 久久一留热品黄| 成人精品免费视频| 亚洲一区二区三区四区五区黄 | 蜜臀久久99精品久久久画质超高清| 欧美精品 国产精品| 日本不卡视频在线| 久久久精品tv| av电影在线观看不卡| 亚洲自拍都市欧美小说| 91精品国产综合久久久久久漫画| 亚洲高清视频的网址| 精品久久99ma| 91原创在线视频| 丝袜美腿亚洲一区| 久久久亚洲高清| 色婷婷综合久久久久中文 | 欧美另类变人与禽xxxxx| 麻豆一区二区三| 日韩一区日韩二区| 欧美午夜片在线看| 国产一区在线观看麻豆| 亚洲激情中文1区| 欧美精品一区二区在线播放| 99久久久无码国产精品| 青青草91视频| 亚洲精品国产第一综合99久久| 制服丝袜中文字幕一区| 99久久伊人网影院| 精品一区二区三区视频在线观看| 国产精品日韩成人| 日韩午夜三级在线| 色婷婷av久久久久久久| 久久99日本精品| 亚洲福利一二三区| 国产精品国产自产拍高清av| 欧美大片在线观看一区二区| 91麻豆视频网站| 成人一区二区三区中文字幕| 日韩高清在线观看| 一区二区在线电影| 国产亚洲一二三区| 在线综合视频播放| 欧洲亚洲国产日韩| 99久久伊人网影院| 国产剧情一区二区三区| 日韩精品一二区| 亚洲综合av网| 亚洲乱码国产乱码精品精可以看| 久久日一线二线三线suv| 91精品国产高清一区二区三区蜜臀| 成人午夜碰碰视频| 国产精品亚洲专一区二区三区| 日本亚洲免费观看| 偷拍一区二区三区四区| 一区二区三区国产精品| 1024精品合集| 国产精品久久毛片| 国产精品美女久久久久久久| 精品国产乱码久久久久久久久| 欧美日韩免费视频| 欧美人妇做爰xxxⅹ性高电影| 色先锋资源久久综合| 色先锋久久av资源部| 91国产成人在线| 欧美日韩一区二区三区在线|