XMLDocument Property

MS Office DHTML, HTML & CSS

 
Click to return to the DHTML, HTML & CSS home page    
x Property     XMLNS Attribute     DHTML Properties    

XMLDocument Property


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

Syntax

HTMLN/A
Scripting[ oXMLObject = ] object.XMLDocument

Possible Values

oXMLObjectObject 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 referenceInternet Link.

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 ]
PlatformVersion
Win16:
Win32:
Mac:
Unix:
WinCE:
Version data is listed when the mouse hovers over a link, or the link has focus.
XML

See Also

persistenceInternet Link


Back to topBack to top

Did you find this topic useful? Suggestions for other topics? write us!Internet Link

© 1999 microsoft corporation. all rights reserved. terms of useInternet Link.