- Feb 22, 2005
- 7,280
- 0
- 0
Just a quick question/opinion poll on how to use XML.
My company has programmed a new reporting API for our clients to use, it offers fairly flexible functionality as far as you can submit query strings or XML to it, receive back either, it pulls multiple reports, etc.
One of the reports though spits back XML using tag attributes for the row info, such as this:
I know that it could be done like this instead:
My question is, are either of these methods considered "preferred" or "proper", or are both fine to use? We fully documented the usage of this API, and since it's new we haven't broken anybody's setup by providing it like this, but we have a single client who's complaining about it and escalating to try and get us to fully re-do it to their liking.
My company has programmed a new reporting API for our clients to use, it offers fairly flexible functionality as far as you can submit query strings or XML to it, receive back either, it pulls multiple reports, etc.
One of the reports though spits back XML using tag attributes for the row info, such as this:
Code:
<row header1="data" header2="data2" header3="data3"></row>
Code:
<row>
<header1>data</header1>
<header2>data2</header2>
<header3>data3</header3>
</row>
My question is, are either of these methods considered "preferred" or "proper", or are both fine to use? We fully documented the usage of this API, and since it's new we haven't broken anybody's setup by providing it like this, but we have a single client who's complaining about it and escalating to try and get us to fully re-do it to their liking.
Last edited: