2. Disclaimer: This presentation is prepared by trainees of
baabtra as a part of mentoring program. This is not official
document of baabtra –Mentoring Partner
Baabtra-Mentoring Partner is the mentoring division of baabte System Technologies Pvt .
Ltd
4. XML
• eXtensible Markup Language
• XML is designed to transport and store data.
• An XML element is made up of a start tag, an end tag, and
data in between.
5. HTML and XML
HTML is used to mark up XML is used to mark up
text so it can be displayed data so it can be processed
to users by computers
HTML describes both XML describes only
structure (e.g. <p>, <h2>, content, or “meaning”
<em>) and appearance (e.g.
<br>, <font>, <i>)
HTML uses a fixed, In XML, you make up
unchangeable set of tags your own tags
6. HTML and XML
• HTML and XML look similar, because they are
both SGML languages (SGML = Standard
Generalized Markup Language)
• Both HTML and XML use elements enclosed in
tags (e.g. <body>This is an element</body>)
• Both use tag attributes (e.g.,
<font face="Verdana" size="+1" color="red">)
• Both use entities (<, >, &, ",
')
7. XML Schema
• An XML schema describes the structure of an XML document
Types:
Simple types (integers, strings, ...)
Complex types (regular expressions, like in DTDs)
8. XML : Example
<BOOKS>
BOOKS
<book id=“123” loc=“library”>
<author>Hull</author> article
loc=“library
<title>California</title> ” ref
123 555
<year> 1995 </year>
</book>
author title
<article id=“555” ref=“123”> author
year
<author>Su</author> title
<title> Purdue</title> Hull
</article> California 1995 Su Purdue
</BOOKS>
9. GladeXML
• Allows dynamic loading of user interfaces
from XML descriptions.
• When one of the objects is created, the XML
file is read, and the interface is created.
• The GladeXML object provides an interface
for accessing the widgets in the interface by
the names assigned to them inside the XML
description.
10. Glade Xml Usage
— Class: <glade-xml>
Derives from <gobject>.
— Function: glade-xml-new (fname mchars)
(root mchars) (domain mchars) ⇒ (ret <glade-
xml>)
Creates a new GladeXML object (and the
corresponding widgets) from the XML
file fname.
11. If this presentation helped you, please visit our
page facebook.com/baabtra and like it.
Thanks in advance.
www.baabtra.com | www.massbaab.com |www.baabte.com