Extensible Markup Language
Extensible Markup Language
language (XML)
3. Principle of Working
4. Architecture
5. Applications
6. Advantages of XML
7. Disadvantages of XML
1. Introduction:
What is XML?
<?
xml version="1.0" encoding=
"UTF-8"?>
<note>
<date>2015-09-01</date>
<hour>08:30</hour>
<to>Tove</to>
<from>Jani</from>
<body>Don't forget me
this weekend!</body>
</note>
5. Applications:
• Web publishing: XML allows you to create interactive pages, allows the
customer to customize those pages, and makes creating e-commerce
applications more intuitive. With XML, you store the data once and then
render that content for different viewers or devices based on style sheet
processing using an Extensible Style Language (XSL)/XSL Transformation
(XSLT) processor.
• e-business applications: XML implementations make electronic data
interchange (EDI) more accessible for information interchange,
business-to-business transactions, and business-to-consumer
transactions.
For example, using HTML to search for books authored by Tom Brown is likely to return instances of the
term 'brown' outside of the context of author. Using XML restricts the search to the correct context (for
example, the information contained in the <author> tag) and returns only the information that you want.
By using XML, Web agents and robots (programs that automate Web searches or other tasks) are more
efficient and produce more useful results.
How the program is executed?
Projects and applications based on XML
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Tutorials point"
android:id="@+id/textView"
android:layout_below="@+id/textview"
android:layout_centerHorizontal="true"
android:textColor="#ff7aff24"
android:textSize="35dp" />
2. A basic tip calculator app
<EditText
android:id="@+id/cost_of_service"
android:layout_width="160dp"
android:layout_height="wrap_content"
android:hint="@string/cost_of_service"
android:inputType="numberDecimal"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
<TextView
android:id="@+id/service_question"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/how_was_the_service"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/cost_of_service" />
<RadioGroup
android:id="@+id/tip_options"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:checkedButton="@id/option_twenty_percent"
3. Login screen layout
<?xml version = "1.0" encoding = "utf-8"?>
<RelativeLayout xmlns:android =
"http://schemas.android.com/apk/res/android"
xmlns:tools = "http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height = "match_parent"
android:paddingLeft= "@dimen/activity_horizontal_margin"
android:paddingRight =
"@dimen/activity_horizontal_margin"
android:paddingTop = "@dimen/activity_vertical_margin"
android:paddingBottom =
"@dimen/activity_vertical_margin" tools:context =
".MainActivity">