News:

This week IPhone 15 Pro winner is karn
You can be too a winner! Become the top poster of the week and win valuable prizes.  More details are You are not allowed to view links. Register or Login 

Main Menu

XML Data Embedded in HTML

Started by ben2ong2, October 05, 2006, 05:18:22 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

ben2ong2

An XML data island is XML data embedded into an HTML page.
Here is how it works; assume we have the following XML document ("note.xml"):
<xml id="note"><note>  <to>Tove</to>  <from>Jani</from>  <heading>Reminder</heading>  <body>Don't forget me this weekend!</body></note></xml>
Then, in an HTML document, you can embed the XML file above with the <xml> tag. The id attribute of the <xml> tag defines an ID for the data island, and the src attribute points to the XML file to embed:
<html><body><xml id="note" src="note.xml"></xml></body></html>
However, the embedded XML data is, up to this point, not visible for the user.
The next step is to format and display the data in the data island by binding it to HTML elements.

You are not allowed to view links. Register or Login
You are not allowed to view links. Register or Login