Academic Tutorials



English | French | Portugese | Dutch | Italian
Google

on-line

Haupt Quellenprogramme E-Bücher Downloads Mit uns in Verbindung treten Über uns

HTML Tutorials
HTML Tutorial
XHTML Tutorial
CSS Tutorial
TCP/IP Tutorial
XML Tutorials
XML Tutorial
XSL Tutorial
XSLT Tutorial
DTD Tutorial
Schema Tutorial
XForms Tutorial
XSL-FO Tutorial
XML DOM Tutorial
XLink Tutorial
XQuery Tutorial
XPath Tutorial
XPointer Tutorial
RDF Tutorial
SOAP Tutorial
WSDL Tutorial
RSS Tutorial
WAP Tutorial
Web Services Tutorial
Browser Scripting
JavaScript Tutorial
VBScript Tutorial
AJAX Tutorial
DHTML Tutorial
HTML DOM Tutorial
WMLScript Tutorial
E4X Tutorial
Server Scripting
ASP Tutorial
PHP Tutorial
PERL Tutorial
SQL Tutorial
ADO Tutorial
.NET (dotnet)
Microsoft.Net
XML Web Services
ASP.Net
.Net Mobile
C# : C Sharp
ADO.NET
VB.NET
Multimedia
SVG Tutorial
Flash Tutorial
Media Tutorial
SMIL Tutorial
Web Building
Web Browsers
Web Hosting
W3C Tutorial
Web Building
Web Quality
Web Semantic
Web Careers
Java Tutorials
Java Tutorial
JSP Tutorial
Servlets Tutorial
Struts Tutorial
EJB Tutorial
JMS Tutorial
JMX Tutorial
Programming Langauges
C Tutorial
C++ Tutorial
Visual Basic Tutorial
Data Structures Using C
Soft Skills
Communication Skills
Time Management
Project Management
Team Work
Leadership Skills
Corporate Communication
Negotiation Skills


XML Data Island
Previous Next




XML Dateninseln: Eine nützliche Einheit, zum von Netzformdaten anzuzeigen

Eine XML Dateninsel ist Extensible Markup Language eingebettet in einem HTML Dokument. Dateninseln sind nicht, daß wichtig oder nützlich zu dieser Zeit, aber, wenn es richtig arbeitend, sie für die Speicherung von Klientseite Informationen nützlich sein kann.


Diese Dateninsel selbst ist unbrauchbar, wenn sie in einem HTML Dokument eingebettet wird. Tatsächlich es sei denn du beschließt, die Quelle der Seite anzusehen, weißt du nicht sogar, daß die Dateninsel dort ist. Die Tatsache, daß die Dateninsel vom beiläufigen Benutzer versteckt wird, kann vom Gebrauch sein. Die Dateninsel kann eine Methode von Informationen auf der Maschine des Klienten auf beinahe gleiche Art und Weise speichern zur Verfügung stellen, die versteckte HTML Rahmen. Der Hauptunterschied zwischen Dateninseln und versteckten HTML Rahmen ist, daß Dateninseln zu den HTML Gegenständen gesprungen werden können. Und da sie XML sind, können sie auf der Klient Maschine manipuliert werden da jedes mögliches andere XML Dokument.


Lassen Sie uns Beispiel einer Einkaufenkarre nehmen. Kunden erwarten bestimmte Eigenschaften von einer Ehandel Anwendung, wie der Fähigkeit, eine Einkaufenkarre anzusehen, wann immer die Stimmung anschlägt. Haben der notwendigen Informationen über die Klient Seite erlaubt die dynamische Anzeige des Einkaufenkarre Inhalts.




XML Daten eingebettet in HTML

Eine XML Dateninsel ist die XML Daten, die in ein HTML page eingebettet werden. Ist hier, wie es funktioniert; annehmen, daß wir das folgende XML Dokument haben („employee.xml“):


<?xml version="1.0" encoding="ISO-8859-1"?>
<company>
<to>Vyom</to>
<from>TCS</from>
<heading>Reminder</heading>
<body>Employee Details</body>
</company>

Then, inside 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="employee" src="employee.xml"></xml>
</body>
</html>


Jedoch bis zu diesem Punkt, sind die eingebetteten XML Daten, nicht sichtbar für den Benutzer.

Der folgende Schritt ist, die Daten in der Dateninsel zu formatieren und anzuzeigen, indem er sie zu den HTML Elementen bindet.


Bindung Daten-Insel zu den HTML Elementen
Im folgenden Beispiel betten wir eine XML Akte ein, die „cd_catalog.xml“ in eine HTML Akte genannt wird.

Die HTML Akte sieht wie dieses aus:

<html>
<body>
<xml id="cdcat" src="cd_catalog.xml"></xml>
<table border="1" datasrc="#cdcat">
<tr>
<td><span datafld="ARTIST"></span></td>
<td><span datafld="TITLE"></span></td>
</tr>
</table>
</body>
</html>

Example explained:

The datasrc attribute of the <table> tag binds the HTML table element to the XML data island. The datasrc attribute refers to the id attribute of the data island. <td> tags cannot be bound to data, so we are using <span> tags. The <span> tag allows the datafld attribute to refer to the XML element to be displayed. In this case, it is datafld="ARTIST" for the <ARTIST> element and datafld="TITLE" for the <TITLE> element in the XML file. As the XML is read, additional rows are created for each <CD> element.




Previous Next

Keywords: xml id, xml document, xml file, xml data island html page, xml data binding, html data island, html xml, data island xml


HTML Quizes
HTML Quiz
XHTML Quiz
CSS Quiz
TCP/IP Quiz
XML Quizes
XML Quiz
XSL Quiz
XSLT Quiz
DTD Quiz
Schema Quiz
XForms Quiz
XSL-FO Quiz
XML DOM Quiz
XLink Quiz
XQuery Quiz
XPath Quiz
XPointer Quiz
RDF Quiz
SOAP Quiz
WSDL Quiz
RSS Quiz
WAP Quiz
Web Services Quiz
Browser Scripting Quizes
JavaScript Quiz
VBScript Quiz
AJAX Quiz
DHTML Quiz
HTML DOM Quiz
WMLScript Quiz
E4X Quiz
Server Scripting Quizes
ASP Quiz
PHP Quiz
PERL Quiz
SQL Quiz
ADO Quiz
.NET (dotnet) Quizes
Microsoft.Net Quiz
XML Web Services Quiz
ASP.Net Quiz
.Net Mobile Quiz
C# : C Sharp Quiz
ADO.NET Quiz
VB.NET Quiz
Multimedia Quizes
SVG Quiz
Flash Quiz
Media Quiz
SMIL Quiz
Web Building  Quizes
Web Browsers Quiz
Web Hosting Quiz
W3C Quiz
Web Building Quiz
Web Quality Quiz
Web Semantic Quiz
Web Careers Quiz
Java Quizes
Java Quiz
JSP Quiz
Servlets Quiz
Struts Quiz
EJB Quiz
JMS Quiz
JMX Quiz
Programming Langauges Quizes
C Quiz
C++ Quiz
Visual Basic Quiz
Data Structures Using C Quiz
Soft Skills Quizes
Communication Skills Quiz
Time Management Quiz
Project Management Quiz
Team Work Quiz
Leadership Skills Quiz
Corporate Communication Quiz
Negotiation Skills Quiz

Privacy Policy
Copyright © 2003-2008 Vyom Technosoft Pvt. Ltd., All Rights Reserved.