What is the difference between localname and qname?
The qualified name includes both the namespace prefix and the local name: att1 and foo:att2. Sample XML <root xmlns=”http://www.example.com/DEFAULT” att1=”Hello” xmlns:foo=”http://www.example.com/FOO” foo:att2=”World”/> Java Code: att1 Attributes without a namespace prefix do not pick up the default namespace. This means while the namespace for the root element is “http://www.example.com/DEFAULT”, the namespace for the att1 attribute is … Read more