INTRODUCTION
Xml is the Extancible Markup Language. It is a markup language that defines a set of rules for encoding documents in a format that is both human-readable and machine-readable. It is define in the XML 1.0 Specification produced by W3C and several other related specifications. XML emphasize simplicity, generality as well as usability over the internet.XML was designed to transport and store data.
XML tags are not predefined. You must define your own tags.
This link shows introduction to XML: http://www.youtube.com/watch?v=Q0k5ySZGPBc
Example of XML Document.
Rule | Explaination | Example |
---|---|---|
Syntax Rule | All XML elements must have a closing tag. | <p>This is a paragtaph</p> |
Tags | XML tags are case sensitive. | <message>This is correct</message> |
Properly Nested | In XML, all elememts must be properly nested within each other. |
<b><i>This text is bold and italic</i></b> |
Root Element | XML documents must contain one element that is the parent of all other elements. This element is called the root element. |
<root> <child> <subchild>...</subchild> </child> </root> |
Attributes Values | In XML the attribute value must always be quoted. | <note date="26/11/2013"> <to>Mdm. Noraslinda Muhamad Bunori</to> <from>MurNurZul</from> </note> |
No comments:
Post a Comment