473,401 Members | 2,125 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,401 software developers and data experts.

type-specific elements vs type attribute

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.
Jul 20 '05 #1
1 1387
chapter 12 at
http://www.ibiblio.org/xml/books/effectivexml/
(chapter 11 might be worth reading too)

with respect,
Toni Uusitalo
"Brunswick" <da************@hotmail.com> wrote in message
news:9f**************************@posting.google.c om...
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.

Jul 20 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Edward | last post by:
Access 97 SR 2 Front End SQL Server 7.00.1063 Back End When I attempt to relink the tables in my Access app. I am suddenly getting this weird error message = "ODBC--Call Failed", followed by...
1
by: Bonavox | last post by:
Hi! FYI: I had some trouble with the type attribute in one of my providers in web.config. I was writing it by hand, and got this error all the time: Required attribute 'type' not found....
1
by: David Lozzi | last post by:
Hello, My webservice is receiving the following error. It runs fine on my local development machine,but when moved to production it errors. I found one KB about this error but it was in regards...
4
by: Ihitawall | last post by:
I want to be capable of generating both XML and flat files from source XML similar to this: <myxml:InternalID owner="MyCompany"> <myxml:ID name="VisitID">ABC</myxml:ID> <myxml:ID...
4
by: jackchang1 | last post by:
I just went across Douglas Crockford's website, and in this page, he mentions that the type/language attribute is not needed, since it is the server that determines the MIME type. But according to...
0
by: vinodpatel | last post by:
HI I am loading some files using bulk insert from store procedure. Iand I am also using sp_OA... to move files to other folder Some time while Executing this store procedure I am getting ERROR...
1
by: Achim Domma | last post by:
Hi, in my data contract I have a member like this: public List<BaseClassItems { get { ... } } The property is serialized as a list of <BaseClasstags with an i:type attribute. It would be...
23
by: Andreas Prilop | last post by:
Is there any *practical* use of writing, say, <a href="book.pdf" type="application/pdf"> with a TYPE attribute? -- Top-posting. What's the most irritating thing on Usenet?
1
Samishii23
by: Samishii23 | last post by:
I'm making a confirm dialog box to ask user upon form submission if this is what he wants to enter in a database. So since all my form names are straight forward about whats being entered. I have...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.