HBCMS更多的中文手册参考:

XMLDocument参数属性

DHTML文档教程

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

dhtml语法

HTMLN/A
Scripting[ oXMLObject = ] object.XMLDocument

DHTML可能的值

oXMLObjectObjectthat specifies a reference to the XML DOM exposed by the object.

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

Remarks

XMLDocument is the default property, and therefore specifying it is optional. The XMLDocument property is useful when passing an entire XML document to a method that requires an ixmldomnode parameter, such as the ixmldomnode::transformnode method. the xml data island itself (denoted by the <xml> tag) is considered an html element rather than an xml element. the xmldocument property provides access to the root of the xml tree within the data island.

for a complete description of the xml dom exposed by the xmldocument property, see the xml dom reference.

DHTML代码范例

This example uses the XMLDocument property to access the object model of an xml data island.

<SCRIPT>
function fnCheck(){
var oNode = oMetaData.XMLDocument.selectSingleNode
("METADATA/ABSTRACT");
alert(oNode.text);
}
</SCRIPT>
<XML ID="oMetaData">
<METADATA>
<AUTHOR>John Smith</AUTHOR>
<GENERATOR>Visual Notepad</GENERATOR>
<PAGETYPE>Reference</PAGETYPE>
<ABSTRACT>Specifies a data island</ABSTRACT>
</METADATA>
</XML>
<INPUT TYPE=button VALUE="Test" onclick="fnCheck()">

是否符合公共标准

There is no public standard that applies to this property.

Applies To

document, XML

更多语法参考

xsldocument, Introduction to Persistence