3

I am not getting where is url: http://schemas.android.com/apk/res/android ? Can somebody please let me know where does this point to? Why cannot we access this URL mentioned in xmlns:android namespace for android xml ?

qtmfld
  • 2,916
  • 2
  • 21
  • 36
Mogli
  • 740
  • 6
  • 8
  • it's an XML schema, it defines how your XML should be structured, it can also be used for XML validation and it's not a URL – svarog Jul 02 '16 at 14:17

2 Answers2

3

You can't access it as it's a URI not a URL, the difference is well explained here :

Uniform Resource Identifier (URI)

A Uniform Resource Identifier (URI) is a string of characters which identifies an Internet Resource.

The most common URI is the Uniform Resource Locator (URL) which identifies an Internet domain address. Another, not so common type of URI is the Universal Resource Name (URN).

So, in some cases you might be able to access it and it'll probably have the description of the namespace.

Community
  • 1
  • 1
Ashish Ranjan
  • 5,523
  • 2
  • 18
  • 39
  • Why is a protocol (http) the schema? I do understand that https://tools.ietf.org/html/rfc3986 has a brief comment on that in 1.2.2, but I do not quite understand why it's done this way. – kaiya Sep 17 '20 at 21:54
  • 1
    @kaiya you can read about it here: https://stackoverflow.com/a/5758068/6518605 – Ashish Ranjan Sep 20 '20 at 10:47
0

It specifies XML namespace. So we have to understand what a XML namespace is: https://www.w3schools.com/xml/xml_namespaces.asp

And why we use URI in name space: Why are URLs in XML namespaces?

qtmfld
  • 2,916
  • 2
  • 21
  • 36
Mogli
  • 740
  • 6
  • 8