XMLDocument
Property of dom/Elementdom/Element
Syntax
var result = element.XMLDocument;
element.XMLDocument = value;
Examples
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()">
Notes
Remarks
XMLDocument is the default property; specifying the property is optional. The XMLDocument property is useful when an entire XML document is passed to a method that requires an html element, instead of an xml element. The XMLDocument property provides access to the root of the XML tree in the data island. For a complete description of the XML DOM exposed by the XMLDocument property, see the XML DOM overview.
See also
Related pages
xmlReferenceXSLDocumentConceptualIntroduction to Persistence
Attributions
Microsoft Developer Network: [Windows Internet Explorer API reference Article]