XMLDocument Property
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
[ Object Name ] Platform Version Win16: Win32: Mac: Unix: WinCE: Version data is listed when the mouse hovers over a link, or the link has focus. XML
See Also
Did you find this topic useful? Suggestions for other topics? write us!
© 1999 microsoft corporation. all rights reserved. terms of use.