type-specific elements vs type attribute

Brunswick

Usenet Archive
Joined
Jan 26, 2004
Messages
1
Reaction score
0
I am in the process of defining a protocol that my company will use to communicate with its customers. At the moment I'm scratching my head about one issue. Should I use type-specific elements to describe our entities e.g. <blah> <floorp>sloop</floorp> <gloorp>droop</gloorp> </blah>

or have a generic element with a type attribute e.g.

<datawad type="blah">
<datawad type="floorp">sloop</datawad>
<datawad type="gloorp">droop</datawad>
</datawad>

I can guess that the former would be easier to develop initially as it would we more conducive to schema generators (e.g. web service tools like Java2WSDL, etc.) but since it is tied to types change manangement might be more difficult than in the latter case. Anyhoo any insight or advice is greatly appreciated. Thanks in advance, D.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
548,208
Messages
3,104,802
Members
249,594
Latest member
henrywalsh

Latest Threads

Top