我看了这个老问题来理解xmlns:android的东西,在这里 A xmlns:android, how does that actually work?
我是XML和Android的新手,所以我无法理解评论,我需要帮助。这是评论 -
从纯XML的角度来看,URI不需要引用任何地方存在的任何东西。您可以编写xmlns:rutski =“www.rutski.com”,就XML而言,该文件是可以的。命名空间的存在允许您在其中放置节点。例如。 android:orientation =“vertical”将orientation属性放在android命名空间中。当文件由其他软件处理时,这变得相关,例如,根据模式进行验证。模式将被定义为期望XML文件中的节点驻留在给定的命名空间中,该命名空间将是schemas.android.com/apk/res/android。
1 - What exactly are these nodes and how does life become better by using them ?
In the above comment, where is the node located ?
2 - What would the xml look like if we did not use namespace ?