This week's book giveaway is in the Jobs Discussion forum.
We're giving away four copies of Java Interview Guide and have Anthony DePalma on-line!
See this thread for details.
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

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "SOAP Interface - Attributes vs. Elements" Watch "SOAP Interface - Attributes vs. Elements" New topic

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: 46
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

I agree. Here's the link:
subject: SOAP Interface - Attributes vs. Elements
It's not a secret anymore!