Introduction to XML
There are many languages based on XML, including XHTML, MathML, SVG, XUL, XBL, RSS, and RDF.
Why Study XML?
- XML plays an important role in many different IT systems.
- XML is often used for distributing data over the Internet.
- It is important (for all types of software developers!) to have a good understanding of XML.
What is XML?
- XML stands for extensible Markup Language. A markup language is used to provide information about a document.
- Tags are added to the document to provide the extra information.
- HTML tags tell a browser how to display the document.
- XML tags give a reader some idea what some of the data means.
Uses of XML:
- XML stands for eXtensible Markup Language.
- XML was designed to store and transport data.
- XML was designed to be both human- and machine-readable.
- XML is used in web development.
- XML can Separate Data from HTML XML is Used to Exchange Data.
- XML Can be Used to Share Data.
- XML Can be Used to Store Data.
- XML can Make your Data More Useful.
- It is used as a base language for communication protocols like XMPP. It is also used to interchange data from one computer to another through internet.
- It has become default format for many office productivity tools like Microsoft Office.
Tags in XML:
<note><to>Tom</to><from Sam</from><heading>Reminder</heading><body>Don't forget me this weekend!</body></note>
Advantages of XML:
- XML is text (Unicode) based.
- One XML document can be displayed differently in different media. - Html, video, CD, DVD,
- XML documents can be modularized. Parts can be reused.
Disadvantages of XML:
- XML syntax is verbose and redundant compared to other text-based data transmission formats such as JSON.
- The redundancy in syntax of XML causes higher storage and transportation cost when the volume of data is large.
- XML document is less readable compared to other text-based data transmission formats such as JSON.
Character:
- An XML document is a string of characters. Virtually every licit Unicode character may appear in an XML document.
- XML documents consist entirely of characters from the Unicode repertoire. Except for a minuscule number of concretely omitted control characters, any character defined by Unicode may appear within the content of an XML document.
- XML includes facilities for identifying the encoding of the Unicode characters that make up the document, and for expressing characters that, for one reason or another, cannot be used directly.
Processor:
Element:
Attribute:
XML declaration:
<?xml version="1.0" encoding="UTF-8"?><note><to>Tove</to><from>Jani</from><heading>Reminder</heading><body>Don't forget me this weekend!</body></note>
<?xml version="1.0" encoding="UTF-8"?><breakfast_menu><food><name>Belgian Waffles</name><price>$5.95</price><description>Two of our famous Belgian Waffles with plenty of real maple syrup</description><calories>650</calories></food><food><name>Strawberry Belgian Waffles</name><price>$7.95</price><description>Light Belgian waffles covered with strawberries and whipped cream</description><calories>900</calories></food><food><name>Berry-Berry Belgian Waffles</name><price>$8.95</price><description>Belgian waffles covered with assorted fresh berries and whipped cream</description><calories>900</calories></food><food><name>French Toast</name><price>$4.50</price><description>Thick slices made from our homemade sourdough bread</description><calories>600</calories></food><food><name>Homestyle Breakfast</name><price>$6.95</price><description>Two eggs, bacon or sausage, toast, and our ever-popular hash browns</description><calories>950</calories></food></breakfast_menu>
What is XML Utilized For?
<part number="1976"><name>Windscreen Wiper</name><description>The Windscreen wiperautomatically abstracts rainfrom your windscreen, if itshould transpire to splash there.It has a rubber <ref part="1977">blade</ref>which can be authoritatively mandated discretelyif you require to supersede it.</description></part>
- Empty elements can be closed as mundane, <ecstasy></ecstasy> or you can utilize a special short-form, <jubilance /> instead.
- In HTML, you only need to quote an attribute value under certain circumstances (it contains a space, or a character not sanctioned in a denomination), but the rules are hard to recollect. In XML, attribute values must always be quoted.
- In HTML there is a built-in set of element names (along with their attributes). In XML, there are no built-in names (albeit names starting with xml have special designations).
- In HTML, there is a list of some built-in character names like é for é but XML does not retain this. In XML, there are only five built-in character entities: <, >, &, " and ' for <, >, &, " and ' respectively. You can define your own entities in a Document Type Definition, or you can utilize any Unicode character (optically discern next item).
- In HTML, there are withal numeric character references, such as & for &. You can refer to any Unicode character, but the number is decimal, whereas in the Unicode tables the number is conventionally in hexadecimal. XML withal sanctions hexadecimal references: & for example.
1. Redundancy:
2. Self-describing:
3. Network effect and the XML Promise:
Any XML document can be read and processed by any XML implement whatsoever. Of course, some XML implements might want categorical XML markup, but the XML format itself can be read by any XML parser: you can't verbally express, this XML document is only to be processed by such-and-such an implement.
Examples:
Related Queries:
- MS ACCESS | It's features, components, uses, advantages and disadvantages| Quicky Tech
- What is CSS ? It's types, properties, advantages, disadvantages and limitations | Quicky Tech
- What is Number System? Different Types of Number System | Number System Explained
- What is a DATABASE ? What is the purpose of DATEBASE | Quicky Tech
- Web Servers | It's types, characteristics, advantages, disadvantages and basic features | Quicky Tech
If you got to know anything from this article. So you can like this article.
And if you find anything bad in this article. Or do you want to improve anything in this article. You comment in the comment box of this article. So that we can improve our upcoming articles To visit the Website at last Thanks.
Thanks You again for Visiting our Website. Please Visit Again.



0 Comments