Click to return to the DHTML, HTML     
x Property     XMLNS Attribute     DHTML Properties    
Web Workshop  |  DHTML, HTML & CSS

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 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 ]
PlatformVersion
Win16:
Win32:
Mac:
Unix:
WinCE:
XML

See Also

Persistence



Back to topBack to top

Did you find this topic useful? Suggestions for other topics? Write us!

© 1999 Microsoft Corporation. All rights reserved. Terms of use.