Reputation: 1065
In XML if we have 2 different namespaces defined like this for example
xmlns:a="http://something.com"
xmlns:b="http://something.com"
and then 2 different elements, Element1
and Element2
, where Element1
uses the prefix a
and Element2
uses the prefix b
.
Do these 2 elements still consider to be belonging to the same namespace or different namespace? Also, isn't this defeating the whole purpose of having namespaces anyway?
Upvotes: 1
Views: 1353
Reputation: 943142
Do these 2 elements still consider to be belonging to the same namespace
Yes.
or different namespace?
No.
Also, isn't this defeating the whole purpose of having namespaces anyway?
No.
Upvotes: 0