xml
xml
This page has been flagged with the following issues:
High-level issues:
Non-Standard
Summary
Defines a simple XML data that can be embedded directly in an HTML page.
Overview Table
| DOM Interface | HTMLElement |
|---|
Examples
This example uses the XML element to define a simple XML data island that can be embedded directly in an HTML page.
<XML ID="oMetaData">
<METADATA>
<AUTHOR>John Smith</AUTHOR>
<GENERATOR>Visual Notepad</GENERATOR>
<PAGETYPE>Reference</PAGETYPE>
<ABSTRACT>Specifies a data island</ABSTRACT>
</METADATA>
</XML>
This example uses the readyState property of the xml object to determine whether the XML data island is completely downloaded.
if (oMetaData.readyState == "complete")
window.alert ("The XML document is ready.");
This example uses the readyState property of the XMLDOMDocument object to determine whether the XML data island is completely downloaded.
if (oMetaData.XMLDocument.readyState == 4)
window.alert ("The XML document is ready.");
This script example retrieves the text contained within the ABSTRACT field of the data island.
var oNode = oMetaData.XMLDocument.selectSingleNode("METADATA/ABSTRACT");
alert(oNode.text);
Notes
Remarks
The readyState property of the XML element, available as a string value, corresponds to the readyState property of the XMLDOMDocument object, which is available as a long value. The string values correspond to the long values of the XML document object's property as shown in the Examples section. The XMLDocument property is the default property. This element is available in HTML and script as of Microsoft Internet Explorer 5.
Standards information
There are no standards that apply here.
Members
The xml object has these types of members:
- [#events Events]
- [#methods Methods]
- [#properties Properties]
Events
The xml object has these events. {
Compatibility
Desktop
| Feature | Chrome | Firefox (Gecko) | Internet Explorer | Opera | Safari |
|---|---|---|---|---|---|
| Basic support | ? | ? | ? | ? | ? |
Mobile
| Feature | Android | BlackBerry | Chrome for mobile | Firefox Mobile (Gecko) | IE Mobile | Opera Mobile | Opera Mini | Safari Mobile |
|---|---|---|---|---|---|---|---|---|
| Basic support | ? | ? | ? | ? | ? | ? | ? | ? |
This article contains content originally from external sources.
Portions of this content come from the Microsoft Developer Network: [Windows Internet Explorer API reference Article]
This tool helps to make and review comments inline.
How to Use
insert instructions, with images, here