XML Data Islands Application Development

Windows Mobile 6.5
A version of this page is also available for

An XML data island is an XML document that exists within an HTML page. It allows you to script against the XML document without having to load the XML document through script or through the <OBJECT> tag. Almost anything that can be in a well-formed XML document can be inside a data island.

Internet Explorer Mobile 6 is required for using the XML Data Islands functionality.

The <XML> element marks the beginning of the data island, and its ID attribute provides a name that you can use to reference the data island.

The following list shows the methods in which a data island may be created:

  • Inline XML
  • Using the <XML> tag
  • Using the <SCRIPT> tag

Inline XML is enclosed within the <XML> and </XML> tags, and is inserted in HTML code, as shown in the following example.

    <name>Mark Hanson</name>

External XML uses the SRC attribute on the <XML> tag to reference an external file. The SRC attribute can refer to a local file or specify a URL. By using URLs that point to external servers, data can be integrated from several sources. The following code uses the SRC attribute with a local file.

<XML ID="XMLID" SRC="customer.xml"></XML>

You can also use the <SCRIPT> tag to create a data island. The following code uses the <SCRIPT> tag.

    <name>Mark Hanson</name>

Community Additions