0% found this document useful (0 votes)
48 views13 pages

What Is XML

The document discusses developing a website for tea and how tea makes people feel fresh in the morning. It also criticizes how history textbooks have portrayed Indian history, arguing that they fail to mention destruction of Hindu temples and ignore the plundering of India's wealth by foreign invaders.

Uploaded by

akshay patil
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
48 views13 pages

What Is XML

The document discusses developing a website for tea and how tea makes people feel fresh in the morning. It also criticizes how history textbooks have portrayed Indian history, arguing that they fail to mention destruction of Hindu temples and ignore the plundering of India's wealth by foreign invaders.

Uploaded by

akshay patil
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 13

What is xml

Xml (eXtensible Markup Language) is a mark up language.


XML is designed to store and transport data.
Xml was released in late 90’s. it was created to provide an
easy to use and store self describing data.
XML became a W3C Recommendation on February 10,
1998.
XML is not a replacement for HTML.
XML is designed to be self-descriptive.
XML is designed to carry data, not to display data.
XML tags are not predefined. You must define your own
tags.
XML is platform independent and language independent.
• The syntax rules of XML are very simple and
logical. The rules are easy to learn, and easy to
use.
• XML Documents Must Have a Root Element
• XML documents must contain one root element
that is the parent of all other elements:
The XML Prolog:
• This line is called the XML prolog:
• <?xml version="1.0" encoding="UTF-8"?>
<root>
  <child>
    <subchild>.....</subchild>
  </child>
</root>
• In this example <note> is the root element:
<?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>
UTF-8 is the default character encoding for XML
documents.
UTF-8 is also the default encoding for HTML5,
CSS, JavaScript, PHP, and SQL.
What is an XML Element?
• An XML element is everything from (including)
the element's start tag to (including) the
element's end tag.
<price>29.99</price>
• An element can contain:
• text
• attributes
• other elements
• or a mix of the above
<bookstore>
  <book category="children">
    <title>Harry Potter</title>
    <author>J K. Rowling</author>
    <year>2005</year>
    <price>29.99</price>
  </book>
  <book category="web">
    <title>Learning XML</title>
    <author>Erik T. Ray</author>
    <year>2003</year>
    <price>39.95</price>
  </book>
</bookstore>
In the example above:
• <title>, <author>, <year>, and <price> have text
content because they contain text (like 29.99).
• <bookstore> and <book> have element contents,
because they contain elements.
• <book> has an attribute (category="children").
• XML elements can have attributes, just like
HTML.
• Attributes are designed to contain data related
to a specific element.
• XML Attributes Must be Quoted
• Attribute values must always be quoted. Either
single or double quotes can be used.
• For a person's gender, the <person> element
can be written like this:
<person gender="female">
XML Elements vs. Attributes
EX.1
<person gender="female">
  <firstname>Anna</firstname>
  <lastname>Smith</lastname>
</person>
EX.2
<person>
  <gender>female</gender>
  <firstname>Anna</firstname>
  <lastname>Smith</lastname>
</person>
<person gender="female">
  <firstname>Anna</firstname>
  <lastname>Smith</lastname>
</person>

In the example gender is an attribute.


• In the first example gender is an attribute. In
the last, gender is an element. Both examples
provide the same information.
• There are no rules about when to use
attributes or when to use elements in XML.
I am devlopng website for chay
Chay sab ki pyari hoti he subah uthte hi hame chay ki talap lagti he oh taja taja chay ho jaye I am devlopng website for chay
Chay sab ki pyari hoti he subah uthte hi hame chay ki talap lagti he oh taja taja chay ho jaye
Insan ka mood fresh kar deti he
Hamara itihas kya raha he itihaskaro ne mandhangat tarike se itihas ko gadha akbar ko mahan or rana pratap ko nicha dikhaya mugalkal swarnim yug he yahi ham 6 class se padhte are he lekin kisi ne tode gaye
hindu mandiro ke bare me nah bataya sone ki chidiya kahe jane vale bharat ko jo loota gaya vo sachhayi nah batayi or tum bhaychare ki bat kar te ho or hamari kom ko khatam karne
Insan ka mood fresh kar deti he
Hamara itihas kya raha he itihaskaro ne mandhangat tarike se itihas ko gadha akbar ko mahan or rana pratap ko nicha dikhaya mugalkal swarnim yug he yahi ham 6 class se padhte are he lekin kisi ne tode gaye
hindu mandiro ke bare me nah bataya sone ki chidiya kahe jane vale bharat ko jo loota gaya vo sachhayi nah batayi or tum bhaychare ki bat kar te ho or hamari kom ko khatam karne h

• I am devlopng website for chay


• Chay sab ki pyari hoti he subah uthte hi hame chay ki talap
lagti he oh taja taja chay ho jaye
• Insan ka mood fresh kar deti he
• Hamara itihas kya raha he itihaskaro ne mandhangat tarike
se itihas ko gadha akbar ko mahan or rana pratap ko nicha
dikhaya mugalkal swarnim yug he yahi ham 6 class se padhte
are he lekin kisi ne tode gaye hindu mandiro ke bare me nah
bataya sone ki chidiya kahe jane vale bharat ko jo loota gaya
vo sachhayi nah batayi or tum bhaychare ki bat kar te ho or
hamari kom ko khatam karne ki sajish rachi ja rahi he

You might also like