Monday, 8 December 2014

XML..

Assalamualaikum.. 
we meet again..

For the previous post, we have share with you about HTML. Today, we would like to share with you about XML..


Table of Contents
1) Introduction
2) XML tree
3) XML Syntax Error


Introduction to XML.
=>Extensible Markup Language (XML) is a markup language that defines a set of rules for encoding documents in a format which is both human-readable and machine-readable.
=>XML was designed to describe data or carry data, not to display data.
=>XML tags are not predefined. You must define your own tags. It is also designed to be self-descriptive.
=>XML Does not do anything
=> its just a plain text
=> XML is not a replacement for HTML but it is a complement to HTML.


How Can XML be Used?

XML is used in many aspects of web development, often to simplify data storage and sharing.
  • XML Separates Data from HTML

  • XML Simplifies Data Sharing

  • XML Simplifies Data Transport

  • XML Simplifies Platform Changes

  • XML Makes Your Data More Available


Internet Languages Written in XML

Several Internet languages are written in XML. Here are some examples:
  • XHTML 
  • XML Schema
  • SVG
  • WSDL
  • RSS

Click HERE to know more about XML.




XML DOCUMENTATION and TREE



But not this tree.. :)

XML documents must contain a root element. This element is "the parent" of all other elements. The elements in an XML document form a document tree. The tree starts at the root and branches to the lowest level of the tree.

example of XML TREE
<inventory>
<drink>
<lemonade>
<price>$2.50</price>
<amount>20</amount>
<price>$1.50</price>
</lemonade><pop>
</drink>
<amount>10</amount> </pop><snack>
<amount>60</amount>
<chips> <price>$4.50</price> </chips>
</inventory>
</snack>



XML Syntax Rules

Here are some syntax error that must be avoid while doing xml code.
  1. All XML Elements Must Have a Closing Tag

  2. XML Tags are Case Sensitive

  3. XML Elements Must be Properly Nested

  4. XML Documents Must Have a Root Element

  5. XML Attribute Values Must be Quoted

  6. Entity References

    Some characters have a special meaning in XML.
    If you place a character like "<" inside an XML element, it will generate an error because the parser interprets it as the start of a new element.
    This will generate an XML error:
    <message>if salary < 1000 then</message>
    To avoid this error, replace the "<" character with an entity reference:
    <message>if salary &lt; 1000 then</message>
There are 5 predefined entity references in XML:

< < less than
> > greater than
& & ampersand
' ' apostrophe
" " quotation mark


Here we provide some tutorial on XML;


That's all from us
Thank You.. :)



1 comment:

  1. Portland Tree Service was founded by Maine residents who grew up in the Portland area. Because of this, we have a deeply ingrained understanding of the vegetation in our area. All of our employees undergo extensive training regarding native species and their specific needs. When it comes to our employees, we are incredibly strict about our hiring practices. All of our team members have at least two years of experience and demonstrate expertise in tree trimming and removal. Regardless of which team members show up, we guarantee they know how to properly perform tree removal Portland ME residents can trust. Here’s what you can expect when you work with us. Before we get started, we will assess the tree in question and decipher the correct service. From there, we will ask you about your preferences for preservation and aesthetics. Following our conversation, we will offer a walkthrough consultation free of cost. A walkthrough enables us to assess your entire property and pinpoint any other potential problems. Check out our basic services and subsequent service pages for more information regarding our offerings.



    Address: Portland, ME

    Phone: 207-708-8450

    business email: https://treeserviceportland.net/contact-us/

    ReplyDelete