• Post Reply Bookmark Topic Watch Topic
  • New Topic

XML Attributes

 
Rinku Singh
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I read it in Whizlabs that attributes can not have minOccurence and maxOccurenece constraints ??


But in the XMML for dummies by Richard they say xsd:sttrbute can have minOccurence and maxOccurenece constraints .

I am looking if someone can explain
 
m prabhu
Ranch Hand
Posts: 79
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi rinku,
attributes cannot have minoccurs or max occurs.these are only for elements.
they have 'use' attribute as occurence constarints.
refer xml 1.0 spec for clarification

prabhu
 
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!