Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

SOAP Interface - Attributes vs. Elements

 
Allexicus Kernikus
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is there a good rule of thumb when to use an attribute and when to use an element?

What do you guys say?
 
Surender Suri
Ranch Hand
Posts: 46
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I don't think there are any general rules when to use attributes vs elements. In general attributes are more for meta-data and elements for actual info, also elements are easily expandable for future changes then attributes. Here is an article with more differences, it applys to soap aswell . Elements vs. Attributes
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic