1
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"

When I made android application, I see sentence in head of XML File. But I don't know the meaning of it.

Cœur
  • 37,241
  • 25
  • 195
  • 267
윤시완
  • 11
  • 2

3 Answers3

1

I assume you are talking about

<?xml version="1.0" encoding="UTF-8"?>

http://www.w3schools.com/xml/xml_tree.asp

Quoting from the link above

The first line is the XML declaration. It defines the XML version (1.0).

Also check

http://en.wikipedia.org/wiki/UTF-8

<LinearLayout xmlns:android="schemas.android.com/apk/res/android"; 

Its a LinearLayout that you have in xml

xmlns- its xml name space

A quick search on the same topic on stackoverflow gives the below links which should anser your question

Why this line xmlns:android="http://schemas.android.com/apk/res/android" must be the first in the layout xml file?

What does "xmlns" in XML mean?

Community
  • 1
  • 1
Raghunandan
  • 132,755
  • 26
  • 225
  • 256
0

I think you are talking about this line <?xml version="1.0" encoding="utf-8"?>

That line actually defines the version of .xml file.

Please refer to XML Standards

user3317558
  • 482
  • 2
  • 13
0

In xml Header this is ?xml version="1.0" the xml VERSION you are defining. This is the ENCODING TYPE of xml to be defined encoding="utf-8"? . And this is the NAMESPACE of xml xmlns:android="http://schemas.android.com/apk/res/android" hope this help.

i.n.e.f
  • 1,773
  • 13
  • 22