xml file and string xml, visiting card

XML (eXtensible Markup Language) is a versatile markup language used for structuring and storing data in a format that is both human-readable and machine-readable. In application development, XML serves various roles:

1. **Data Interchange:** XML is commonly used for data interchange between heterogeneous systems. It provides a standard way to structure and represent data, making it easier for different applications to exchange information.

2. **Configuration Files:** Many applications use XML for configuration files. These files store settings and parameters that can be easily modified without altering the source code, offering flexibility and ease of configuration.

3. **Web Services:** XML is a fundamental part of web services, where it is often used to format data exchanged between applications over the internet. SOAP (Simple Object Access Protocol) and REST (Representational State Transfer) are examples of web service protocols that use XML.

4. **Document Storage:** XML is suitable for storing documents with a hierarchical structure. It allows developers to define their own tags and document structure, making it adaptable to a wide range of data types.

"String XML" is not a standard term, but it seems you might be referring to XML data stored as a string in programming languages. In many programming languages, XML data can be represented as a string and manipulated using string manipulation functions. This is common when working with APIs or parsing data received in XML format.

In summary, XML plays a crucial role in application development by providing a standardized format for data representation, interchange, and configuration, while "String XML" refers to the representation of XML data as a string within the context of a programming language.

Visiting card 

FILE NAME: MAINACTIVITY.JAVA



package com.example.visitingcard;



import android.support.v7.app.AppCompatActivity; import android.os.Bundle;



public class MainActivity extends

@Override

 AppCompatActivity {



protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState);



setContentView(R.layout.activity_main);



}

FILE NAME: ACTIVITY_MAIN.XML



<?xml version="1.0" encoding="utf-8"?> . ConstraintLayout



android.support.constraint xmlns:android="http://schemas.android.com/apk/res/android"



<



xmlns:app="http://schemas.android.com/apk/res-auto"



xmlns:tools="http://schemas.android.com/tools"



android:layout_width="match_parent"



android:layout_height="match_parent"



tools:context=".MainActivity">



<TextView

style="@android:style/Widget. DeviceDefault. Light. TextView"



android:layout_width="335dp"



android:layout_height="49dp"



android:layout_marginStart="44dp"



android:text="C SASIDHAR SARMA"



android:textAlignment="center"



android:textAppearance="@style/TextAppearance.AppCompat. Displa



y1"



android:textSize="24sp"



app:layout_constraintBottom_toBottomOf="parent"



app:layout_constraintLeft_toLeftOf="parent"



app:layout_constraintRight_toRightOf="parent"



app:layout_constraintStart_toStartOf="parent"

app:layout_constraintTop_toTop0f="parent" app:layout_constraintVertical_bias="0.307" />



<TextView



android:id="@+id/textView"



style="@android:style/Widget.DeviceDefault. Light. TextView"



android:layout_width="335dp"



android:layout_height="49dp"



android:layout_marginStart="88dp" android:text="ASSIST PROFESSOR, CSE"



android:textAlignment="center"



android:textAppearance="@style/TextAppearance. AppCompat.Displa



y1"



android:textSize="24sp"



app:layout_constraintBottom_toBottom0f="parent"



app:layout_constraintLeft_toLeftof="parent" app:layout_constraintRight_toRightOf="parent"



app:layout_constraintStart_toStartOf="parent"



app:layout_constraintTop_toTopOf"parent"



app:layout_constraintVertical bias="0.395" />



</android.support.constraint. ConstraintLayout>

Comments

Popular posts from this blog