Basic XML knowledge 9 (XML data island)

Source: Internet
Author: User

With ie5.0 or a later version, XML data can be embedded into HTML pages in the form of data islands.

Embed XML data in HTML pages

You can embed XML data into an HTML page using the unofficial Standard <XML> tag.

XML data can be embedded into HTML pages as follows:

<xml id="note">            <note>            <to>Tove</to>            <from>Jani</from>            

Or embed an external XML file as follows:

<xml id="note" src="note.xml">            </xml>

Note that the <XML> mark is an HTML element, not an XML element.

Data Binding

XML data island can be bound to HTML elements (such as tables ).

In the following example, an XML data island (ID = cdcat) is loaded from an external XML document. An HTML table is bound to this data island. The span elements in an HTML table are bound to each other using the dataworks attribute and the XML elements corresponding to the XML document.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.