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


Elments von XML?
Previous Next



Elemente von XML


Um Elemente eines XML Dokumentes zu verursachen werden verwendet. Läßt das annehmen, um ein Dokument mit den Elementen LAND, WALD, BAUM, WIESE, GRAS zu erstellen. Hier, wie wir von diesen allen Elementen verwenden:



XML Elemente sind ausdehnbar
Mehr Informationen XML Dokumente zu tragen kann ausgedehnt sein.
XML Beispiel:

<LAND>
  <FOREST>
   <TREE>Oak</TREE>
   <TREE>Pine</TREE>
   <TREE>Maple</TREE>
  </FOREST>
  <MEADOW>
   <GRASS>Bluegrass</GRASS>
   <GRASS>Fescue</GRASS>
   <GRASS>Rye</GRASS>
  </MEADOW>
</LAND>

 


Jedes Element wird in den <> Haltewinkeln umgeben. Das Element muß Ende mit „/“ Buchstabe vor seinem Namen sein. XML erfordert ein Element, wie das alle andere enthält. Dieses einzelne Element („LAND“), wird das Wurzelelement genannt. Das WALDelement enthält einige BAUM-Elemente, und die WIESE enthält ebenfalls einige Elemente des GRASES.

Elemente, die in einem anderen Element eingeschlossen sind, werden genistetes Element genannt. Die BAUM-Elemente, die im oben genannten Beispiel genistet werden, werden im WALDelement genistet. Das WALDelement ist- das Elternteilelement zum BAUM-Element und das BAUM-Element wird auch den Sub-element zum WALDelement genannt. Der Einfluß dieser Verhältnisse, der als du zutreffend ist, bewegen auf und ab die Elementhierarchie. Die WALD- und WIESEelemente sind- Sub-elements zum LAND-Wurzelelement.

Das unten Beispiel ist nicht wohlgeformt:

<LAND>
  <FOREST>
   <TREE>Oak</TREE>
   <TREE>Pine</TREE>
   <TREE>Maple
  </FOREST>
</TREE>
  <MEADOW>
   <GRASS>Bluegrass</GRASS>
   <GRASS>Fescue</GRASS>
   <GRASS>Rye</GRASS>
  </MEADOW>
</LAND>

 




Element Tags
For all elements that have content,XML elements require both a beginning tag and an ending tag.
Elements with content :

<TREE>Oak tree</TREE>

Elements without content may be expressed as:

<NOTHING></NOTHING>

In short it may be expressed as:

<NOTHING/>

Elements with no content may be used to display graphics and other material in the document.
 




Erstes XML

Einleitung in ein XML

  • Was HTML ist


  • Was XML ist
XML Syntax

  • Elemente müssen einen schließenden Umbau haben


  • Elemente müssen richtig genistet werden
Sich vorstellen, daß dieses XML Dokument das Buch beschreibt:
<book>
<title>First XML</title>
<prod id="33-657" media="paper"></prod>
<chapter>Introduction to XML
<para>What is HTML</para>
<para>What is XML</para>
</chapter>
<chapter>XML Syntax
<para>Elements must have a closing tag</para>
<para>Elements must be properly nested</para>
</chapter>
</book>

Book is the root element. Title, prod id, and chapter are child elements. Book is the parent element of title, prod, and chapter. Title, prod, and chapter are siblings because they have the same parent.




The Content Of Element

Elements may contain:

  • Nested elements


  • Processing instructions


  • Normal text.


  • CDATA sections - it consistspecial characters which is not displayed normally by the browser such as less than or greater than sign. These signs are used to enclose tags and are special characters. An example CDATA section:

<![CDATA[
The < and > characters are displayed normally here.
]]>


  • Entity references - An entitity reference is not allowed by a & sign.


  • Character references - Character References are not displayed normally in XML such as the < or > characters. These characters are represented as &#40 and &#42 respectively and will be presented on the browser as the less than or greater than character they represent.



  • Comments - Comments are shown below and may be placed anywhere except an element tag (markup).


  • <!-- comment not display by browser -->



Namengeben von Versammlung
Dieses Namengebenrichtlinien Muß folgte von den XML Elementen:
  • es besteht Buchstaben, Zahlen und andere Buchstaben
  • Namen dürfen nicht mit einer Zahl oder einem Interpunktionszeichen beginnen
  • Namen dürfen nicht mit dem Buchstaben xml beginnen (oder XML oder Xml, usw.)
  • Namen können nicht Räume enthalten

Mach's gut, wenn du Elementnamen „erfindest“ und diesen einfachen Richtlinien folgst:

Jeder möglicher Name kann verwendet werden, sind keine Wörter reserviert, aber die Idee ist, Namen beschreibend zu bilden. Namen mit einem Unterstreichen Separator sind nett.

Beispiele: <first_name>, <last_name>.

Vermeiden „-“ und „.“ in den Namen. Z.B. wenn du etwas „Erstnamen nennst,“ es könnte eine Verwirrung sein, wenn deine Software versucht, Namen von zuerst zu subtrahieren. Oder wenn du etwas „first.name nennst,“ kann deine Software denken, daß „Name“ ist eine Eigenschaft des Gegenstandes „zuerst.“

Elementnamen können sein, solange du magst, aber nicht übertreiben. Namen sollten, so kurz und einfach sein: <book_title> nicht mögen dieses: <the_title_of_the_book>.

XML Dokumente haben häufig eine entsprechende Datenbank, in der bestehen auffängt, entsprechend Elementen im XML Dokument. Eine gute Praxis ist, die Namengebenrichtlinien deiner Datenbank für die Elemente in den XML Dokumenten zu verwenden.

Nicht-Englische Buchstaben wie ??? sind in den XML Elementnamen tadellos zugelassen, aber passen heraus für Probleme auf, wenn dein Software-Verkäufer sie nicht stützt.

„: “ sollte nicht in den Elementnamen verwendet werden, weil sie aufgehoben wird, für etwas verwendet zu werden benannte namespaces (später).




Previous Next

Keywords: naming convention, universal naming convention, naming convention prefix, naming convention language


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.