Win a copy of Java 9 Revealed this week in the Features new in Java 9 forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Difference between XSD attribute and element  RSS feed

 
manjit sidhu
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I understand that you can have a element and attribute in a complex object.

Also elements can be in a sequence.

But what is an attribute and how does it differ from a element?
 
Mikalai Zaikin
Ranch Hand
Posts: 3403
16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
manjit sidhu wrote:I understand that you can have a element and attribute in a complex object.

Also elements can be in a sequence.

But what is an attribute and how does it differ from a element?




Is that what you're asking ?

HTH,
MZ
 
Deepika Joshi
Ranch Hand
Posts: 268
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Following is from RMH book, might be helpful

2.1.2.3 Attributes
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!