Retrieves a reference to the XML Document Object Model (DOM) exposed by the object.
Syntax
HTML N/A Scripting [ oXMLObject = ] object.XMLDocument
Possible Values
oXMLObject Object that specifies a reference to the XML DOM exposed by the object. The property is read-only with no default value.
Remarks
For a complete description of the XML DOM exposed by the XMLDocument property, see the XML DOM Reference.
Example
This example uses the XMLDocument property to access the object model of an XML data island.
Sample Code
<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()">
Applies To
XML
See Also