Hello everybody
I am learning xml and xml processing.I couldn't understand existence of namespace well.
I learn that Namespace help us seperate same named elements in xml.Can't we discriminate elements by attributes which has same name ? Why namespace is important or required ?
I want to give an example:
<persons>
<person></person>
<s:person xmlns:s="student"></s:person>
<person type="student"></person>
</persons>
First person is normal element.Second use namespace and third use type attribute. can't we use third one instead of second one ?