Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

XyzWs exam question --doubt

 
Rashmi Verma
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

For the Question Id - 2041

II.
<x xmlns:n1="http://www.w3.org"
xmlns="http://www.w3.org" >
<productId a="1" b="2">1234<productId/>
<productId a="1" n1:a="2">5678<productId/>
</x>

In my opinion the XML is illegal as the default namespace is same as that for prefix n1 so in

<productId a="1" n1:a="2">5678<productId/>

the atriribute 'a' belongs to same namespace and hence this XML snippet is illegal

The answer to the question states that this snippet is leagal

Please correct me if I am missing something

Regards,
Rashmi
 
wise owen
Ranch Hand
Posts: 2023
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
5.3 Uniqueness of Attributes.


the default namespace does not apply to attribute names
 
Rashmi Verma
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Wise ..definetly I missed out this

Regards,
Rashmi
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic