This is a discussion on What are XML data islands? within the XML and SOAP forums, part of the Web Development category; Hi guys, Can any one explain what are XML data islands?and what is their application? Thanks devarajan.V...
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
|
#1
| |||
| |||
| Hi guys, Can any one explain what are XML data islands?and what is their application? Thanks devarajan.V |
|
#2
| |||
| |||
| Internet Explorer 5 introduced a new concept of embedding chunks of XML data inside the Web HTML page, and then accessing that XML data either from the client-side script or directly binding that data to the HTML controls such as HTML tables. These are known as XML Data Islands and sometimes turn out useful in scenarios such as in avoiding the round-trip to the server. The XML data is enclosed between the special tags (). |
|
#3
| |||
| |||
| hey, It is data in the form of XML embedded in an HTML document. By embedding XML data you create an XML data island, thereby storing your data on the client. This is not good enough. You also want to know how to access it. The HTML elements on the page can be bound to the XML data island and make them come to life, on the client. In reality an XML data island represents a built-in Data Source Object in the IE browser. This means you do not need <object/> tags to embed the control. Example describing an XML data island First of all, to get a handle on XML data islands, let us start with a simple HTML file, Simple.htm, with some embedded XML. Of course, you can create your own XML file, but for this tutorial please follow the code shown in the next paragraph. For the embedded XML file, the webstudents.xml file used in my other tutorials will be used. This is how this XML is displayed by the parser on the IE. In the HTML file the XML data island is a different color. Simple.htm <HTML> <HEAD> <TITLE> </TITLE> </HEAD> <BODY> <h3>Html file with embedded XML</h3> <P>Here begins the XML Data Island</P> <xml id="WebStudents"> <wclass> <!-- My students who attended my web programming class --> <student id="1"> <name>Linda Jones</name> <legacySkill>Access, VB5.0</legacySkill> </student> <student id="2"> <name>Adam Davidson</name> <legacySkill>Cobol, MainFrame</legacySkill> </student> <student id="3"> <name>Charles Boyer</name> <legacySkill>HTML, Photoshop</legacySkill> </student> <student id="4"> <name>Charles Mann</name> <legacySkill>Cobol, MainFrame</legacySkill> </student> </wclass> </xml> <P>Here ends the XML Data Island</P> </BODY> </HTML> When you display this page in the browser, what you will see is only this. There is nothing to indicate that something is embedded. If you review the embedded XML file you notice that it has an id called "WebStudents." You also notice that it has well formed XML content. The data content of this file includes the student ids, student names and their skill sets.
__________________ Venkat knowledge is Power |
![]() |
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Data Masking helps in reducing data privacy violations | stargold | Database Support | 2 | 07-21-2009 07:21 PM |
| Data Masking helps in reducing data privacy violations | stargold | The Lounge | 0 | 07-02-2009 07:41 PM |
| What are the different problems that “Data mining” can solve? Data warehousing | oxygen | Database Support | 1 | 07-26-2007 03:37 AM |
Our Partners |