Rabu, 12 November 2014

XML

Asalamualaikum everyone! Today we would like to share what we had learn on computer in science class just now. A new topic and interesting which is XML. XML stand for Extensible Markup Language and was design to describe data. XML also a software-hardware independent tools for carrying information.

Three types of XML
  1. XML document
  2. XML tree
  3. XML table

XML document

Example of information or data stored as xml called xml documents:

<note>
<to>Flor</to>
<from>Janea</from>
<heading>PS</heading>
<body>I've seen suspicious movement from Black Brigade Group</body>

XML is usually used in many aspect of web development and simplify data storage and sharing

XML tree
XML documents have a hierarchical structure and can conceptually be interpreted as a tree structure called an XML tree. Xml documents must contain a root elements ( one that is the parent of all other elements). All elementss in an XML document can contain sub elements, text and attributes.



Rules for Naming Elements

  • Names can contain letters, numbers, and other characters
  • Names cannot start with a number 
  • Names cannot start with the letters like letters xml, XML or etc.

COMPARISON BETWEEN HTML AND XML

HTML XML
COMPARISON
  • Markup languange for displaying web pages in a web browser. Designed to display data with focus on how the data look
  • Displaying information
  • Designed to display data, with focus on how data looks
  • Markup language defines a set of rules for encoding documents that can be read by noth humans and machines. Designed with focus on storing and transporting data
  • Carrying information
  • Designed to transport and store data with focus on what data is
LEARN MORE ABOUT XML THROUGH THIS VIDEO: XML

Tidak ada komentar:

Posting Komentar