capint
12/1/2015 - 9:49 PM

XML >> Local name vs qualified name

XML >> Local name vs qualified name

Qualified name includes both the namespace prefix and the local name

>> Example 1
Local name = "att1"
Qualified name = "foo:att1"
URI = "http://www.example.com/FOO"
<root 
    xmlns:foo="http://www.example.com/FOO" 
    foo:att1="World"/>

>> Example 2
<root 
    xmlns="http://www.example.com/DEFAULT" 
    att2="Hello"/>
Local name = "att2"
Qualified name = "att2"
URI = "" (even though namespace URI of root = "http://www.example.com/DEFAULT")