Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
  • 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: 3418
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
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!