How to embed XML data in an HTML page

Embedding xml data in an html page can be done through a concept called data islands. These are supported by the <xml> tag that is used to embed the data source in the html file. For example if you are going to embed an xml file called books.xml in to an html page then, you can use a code similar to,

_______________________________________________


_______________________________________________

<xml id="bksrc" src="books.xml"></xml>

After writing this code the contents of the books.xml file is embedded in the html page. But this content is not visible to the use at present. You have to write the code to display the content that is embedded in the web page. You can do so by,

<table border="1" datasrc="#bksrc">
<tr>
<td><span datafld="author"></span></td>
<td><span datafld="title"></span></td>
</tr>
</table>

The above table uses the datasrc as the id given in the xml tag so that the content of the books.xml file is available to the table. The datafld attribute is used in the <span> tag to display text in the author and the title elements in the xml file.

Battle of the Buzzwords (D-Lib Magazine)
The PREMIS Data Dictionary for Preservation Metadata 1 specifies the information that a repository needs to maintain for the long-term preservation of digital objects. Many institutions use the Metadata Encoding and Transmission Standard (METS) to implement metadata in digital library applications.

Linked by Thom Holwerda on Wed 5th Mar 2008 21:24 UTC (New Mobile Computing)
Microsoft has released the first beta release of Internet Explorer 8 just a few moments ago. "Download Internet Explorer 8 Beta 1 and put the web at your service for you and your customers.

CM4all To Unveil Major Product Enhancements in Chicago At HostingCon 2008 (wallstreet:online AG)
CM4all, a leading developer of web-based applications, has today announced that it will unveil new

CM4all To Unveil Major Product Enhancements in Chicago At HostingCon 2008 (Business Wire via Yahoo! Finance)
COLOGNE, Germany & BOSTON----CM4all, a leading developer of web-based applications, has today announced that it will unveil new releases of the CM4all WebsiteCreator Consumer and Business Editions at HostingCon 2008 in Chicago.



FREE Subscription

Subscribe to our mailing list and receive new articles
through email. Keep yourself updated with latest
developments in the industry.

Name:
Email:

Note : We never rent, trade, or sell my email lists to
anyone. We assure that your privacy is respected
and protected.

_______________________________________

Recommended XML Books

cover
cover
cover
cover
cover
cover





 

 

FREE Subscription

Stay Current With the Latest Technology Developments Realted to XML. Signup for Our Newsletter and Receive New Articles Through Email.

Name:

Email:

Note : We never rent, trade, or sell our email lists to anyone. We assure that your privacy is respected and protected.

 

 

Add to My Yahoo!


New XML Books Titles - Best Seller's @ Amazon.com

Visit XML Training Material Guide Homepage

Technology helps engage students - how do classroom instruction and social dynamics change when the classroom is completely dependant on modern technology?

Dallas Web Design- local Dallas web design firm offers site design and backend system development