最新国产好看的视频,伊人天堂AV在线,国产Aaaaaa视频,蜜臀视频在线观看一区,人妻av色图,密臀久久久精品影片,青青视频免费观看毛片,久草在线观看视,国产三级精品色情在线

XMLDocument Property

Internet Development Index

Retrieves a reference to the XML Document Object Model (DOM) exposed by the object.

Syntax

XMLN/A
Scripting[ oXMLObject = ] object.XMLDocument

Possible Values

oXMLObjectObject爐hat specifies the XML DOM exposed by the object.

The property is read-only. The property has no default value.

Remarks

For a complete description of the XML DOM exposed by the XMLDocument property, see the XML DOM Reference.

When persistence is applied to an element, a root node is automatically created within the exposed XML document. This node is accessed through the documentElement property. You can use setAttribute to add attributes to the root node, and you can use appendChild to add child nodes to the root node.

The XMLDocument property is available to the saveFavorite and saveHistory behaviors only when the onload and onsave events are fired.

Example

This example shows how a persistent object can access the XML DOM through the XMLDocument property. The setAttribute method is exposed through the XML DOM. The setAttribute method is not the same as the DHTML and persistence methods of the same name.

<HTML>
<HEAD>
<META NAME="save" CONTENT="history">
<STYLE>
.saveHistory {behavior:url(#default#savehistory);}
</STYLE>
<SCRIPT>
function fnSave(){
var oXMLDoc=oPersistObject.XMLDocument;
var oNode=oXMLDoc.createNode(1,"Trunk", "");
oNode.text="A tree trunk.";
oNode.setAttribute("desc",oPersistObject.innerHTML);
oXMLDoc.documentElement.insertBefore(oNode, null);
}
function fnLoad(){
var oXMLDoc=oPersistObject.XMLDocument;
var oItem=oXMLDoc.documentElement.childNodes.item(1);
oPersistObject.innerHTML=oItem.getAttribute("desc");
}
function fnInsTxt(){
oPersistObject.innerHTML="I am an Ash.  I am an Ash sapling."
+ "Well, I am the trunk of an Ash sapling.";
}
</SCRIPT>
</HEAD>
<BODY>
<INPUT TYPE="button" VALUE="Insert Text" ONCLICK="fnInsTxt()">
<A HREF="/workshop/samples/author/persistence/saveTarget_1.htm">
Leave The Page
</A>
<DIV
ID="oPersistObject"
CLASS="saveHistory"
ONSAVE="fnSave()"
ONLOAD="fnLoad()">
</DIV>
</BODY>
</HTML>
This feature requires Microsoft® Internet Explorer 5 or later. Click the following icon to install the latest version. Then reload this page to view the sample.

Standards Information

There is no public standard that applies to this property.

Applies To

saveFavorite, saveHistory, userData

See Also

Introduction to Persistence
包头市| 昌江| 山西省| 封开县| 岳普湖县| 丹凤县| 惠水县| 陕西省| 开封市| 奇台县| 革吉县| 乌鲁木齐县| 南城县| 化隆| 临潭县| 松潘县| 深水埗区| 六盘水市| 玛纳斯县| 九龙城区| 西乌| 融水| 图木舒克市| 博白县| 错那县| 双牌县| 余庆县| 灵台县| 永济市| 晋州市| 资源县| 横山县| 靖远县| 什邡市| 临洮县| 南宁市| 洛阳市| 德江县| 沽源县| 通江县| 蒙自县|