What Is a Data Island?

A data island is an XML code that exists in an HTML page. Data islands allow you to integrate XML into HTML pages and script XML without the need to read XML through scripts or <OBJECT> tags. Almost everything that can exist in a well-structured XML document can exist in a data island. Includes processing instructions, DOCTYPE declarations, and internal subsets. (Note that encoded strings cannot be placed in data islands.)

Data island

This entry lacks an overview map . Supplementing related content makes the entry more complete and can be upgraded quickly. Come on!
A data island is an XML code that exists in an HTML page. Data islands allow you to integrate XML in HTML pages and write XML
The <XML> element marks the beginning of the data island, and its ID attribute provides a name that can be used to reference the data island.
The XML of the data island can be embedded:
<XML ID = "XMLID">
<customer>
<name> Herbert Hanley </ name>
<custID> 81422 </ custID>
</ customer>
</ XML>
Or referenced in XML tags via SRC attributes:
<XML ID = "XMLID" SRC = "customer.xml"> </ XML>
You can also use the <SCRIPT> tag to create a data island:
<SCRIPT LANGUAGE = "xml" ID = "XMLID">
<customer>
<name> Mark Hanson </ name>
<custID> 81422 </ custID>
</ customer>
</ SCRIPT>
XML Don't
What is it? XML data islands are XML data embedded in HTML pages.
Why avoid using it? XML data islands are only valid in Internet Explorer.
What to replace it with? You should use JavaScript and XML DOM in HTML to parse and display XML.
For more information on JavaScript and XML DOM, visit w3school's XML DOM tutorial.

IN OTHER LANGUAGES

Was this article helpful? Thanks for the feedback Thanks for the feedback

How can we help? How can we help?