Differences between a 'local name' and 'qualified name' in a xml attribute

Viewed 11031

Can you please help me understand what is the difference between 'local name' and 'qualified name' in a xml attribute? From http://developer.android.com/reference/org/xml/sax/Attributes.html:

/** Look up an attribute's local name by index. */
abstract String getLocalName(int index)

/** Look up an attribute's XML qualified (prefixed) name by index. */    
abstract String getQName(int index)

In this example,

<anelement attr1="test" attr2="test2"> </anelement>

What will be the difference?

2 Answers
Related