jQuery in Action, 2nd edition*
The moose likes Web Services and the fly likes SOAP Interface - Attributes vs. Elements Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Web Services
Bookmark "SOAP Interface - Attributes vs. Elements" Watch "SOAP Interface - Attributes vs. Elements" New topic
Author

SOAP Interface - Attributes vs. Elements

Allexicus Kernikus
Ranch Hand

Joined: Oct 07, 2009
Posts: 42
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

Joined: May 28, 2010
Posts: 42
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


Thanks,
Suri
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: SOAP Interface - Attributes vs. Elements