Displaying an XML Data Island in an HTML Table

Displaying an XML Data Island in an HTML Table

The tag can be used to create an XML data island. XML data islands are XML- data referenced or included in an HTML page. The XML data can be part of the HTML document, or it can stay in an external data file.

The ID attribute given with the tag is used to reference the data island. You can format and display the data in the XML data island by using HTML tags that can accept data source tags. Basically, the whole idea is to bind the HTML to the data.

Here is an example that displays the XML items tagged with XML Data Island Demo


tag uses the DATASRC attribute to reference the in-line XML. The DATASRC refers to the ID attribute used to identify the XML preceded by a pound sign (#).

Since the TD element cannot be bound to data, we are using the DIV element. The DIV element allows the DATAFLD attribute to refer to the XML element that is placed in the cell of the table. In this case, it’s DATAFLD=”Code” for the “Code” attribute of the XML element. As the XML is read, additional rows are created for each element tagged with the tag.

Share the Post:
data observability

Data Observability Explained

Data is the lifeblood of any successful business, as it is the driving force behind critical decision-making, insight generation, and strategic development. However, due to its intricate nature, ensuring the

Heading photo, Metadata.

What is Metadata?

What is metadata? Well, It’s an odd concept to wrap your head around. Metadata is essentially the secondary layer of data that tracks details about the “regular” data. The regular

©2023 Copyright DevX - All Rights Reserved. Registration or use of this site constitutes acceptance of our Terms of Service and Privacy Policy.