473,549 Members | 2,741 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Arguments for and against storing data in attributes

I personally feel that it's a bad idea. I've got to convince
managerial types of this.

Would some of you mind posting comments for and against the concept of
storing data in XML attributes? If you've got nothing good to say for
it, I'm OK with that too.

Thanks ahead of time for your input.

~G

Jul 20 '07 #1
4 2059

Falcolas wrote:

[storing data in attributes]
I personally feel that it's a bad idea. I've got to
convince managerial types of this.

Would some of you mind posting comments for and against
the concept of storing data in XML attributes? If you've
got nothing good to say for it, I'm OK with that too.
Storing data in attributes is perfectly fine, as long as
it's plain old data, and as long as you keep in mind that
attribute value normalization applies (the standard uses
MUST there, so you can't work around that in a sensible
way).

--
roy axenov

If only we smelled each other's asses, there wouldn't be any
war.--Dustin Hoffman
Jul 20 '07 #2
Falcolas wrote:
I personally feel that it's a bad idea.
There are sometimes reasons not to do it, eg if you expect the data may
need to support sub-structure later on. But it isn't automatically a bad
idea, especially if the purpose of the data is to help describe the role
the element is playing (which is the classic use for attributes).

Tools for tasks.
--
() ASCII Ribbon Campaign | Joe Kesselman
/\ Stamp out HTML e-mail! | System architexture and kinetic poetry
Jul 21 '07 #3
Falcolas wrote:
I personally feel that it's a bad idea. I've got to convince
managerial types of this.

Would some of you mind posting comments for and against the concept of
storing data in XML attributes? If you've got nothing good to say for
it, I'm OK with that too.
See the FAQ at http://xml.silmaril.ie/developers/attributes/

///Peter
Jul 21 '07 #4
On Jul 20, 10:03 pm, Joe Kesselman <keshlam-nos...@comcast. netwrote:
There are sometimes reasons not to do it, eg if you expect the data may
need to support sub-structure later on. But it isn't automatically a bad
idea, especially if the purpose of the data is to help describe the role
the element is playing (which is the classic use for attributes).
Thank you for all your responses, and for the faq link. Some good
reading.

To clarify for the above comment, *all* the data is being stored in
attributes; the leaf elements contain no data themselves, just
attributes. I'm in full agreement that metadata belongs in attributes.
I'm just of the opinion that barring a remotely good reason (which we
have not received), data should be stored in elements.

~G

Jul 23 '07 #5

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

Similar topics

8
2522
by: Mark English | last post by:
I'd like to write a Tkinter app which, given a class, pops up a window(s) with fields for each "attribute" of that class. The user could enter values for the attributes and on closing the window would be returned an instance of the class. The actual application I'm interested in writing would either have simple type attributes (int, string,...
15
7198
by: Erica | last post by:
I'm getting the following error: ADODB.Recordset error '800a0bb9' Arguments are of the wrong type, are out of acceptable range, or are in conflict with one another. /shop/results.asp, line 15 line 15 is the recordset open line. Can someone please help
1
1822
by: Ryan | last post by:
I have a very complex XDR schema that uses namespaces: xmlns="urn:schemas-microsoft-com:xml-data" xmlns:b="urn:schemas-microsoft-com:BizTalkServer" xmlns:d="urn:schemas-microsoft-com:datatypes" Do I need to build a custom validator in order to validate XML documents against this schema? How does the XML parser know how to validate...
5
411
by: matevz bradac | last post by:
Hi, I'm trying to implement delayed function execution, similar to OpenGL's display lists. It looks something like this: beginList (); fcn1 (); fcn2 ();
10
3056
by: Diego F. | last post by:
Hello. I need to store custom objects in a SQL Server 2000 table. Which is the easiest way to do it? Do I need to write methods to store each attribute separately from C# app to the table and the opposite as well? Regards, Diego F.
7
1308
by: Nick Gilbert | last post by:
Hi, As part of a website (ASP.NET) we're creating, we need the ability to store documents with pretty much 'mission critical' security. ie, if the server is completely compromised (eg a trojan/virus is installed or someone physically steals the server) they will still not be able to gain access to the content of the files. I can securely...
44
2724
by: gregory.petrosyan | last post by:
Hello everybody! I have little problem: class A: def __init__(self, n): self.data = n def f(self, x = ????) print x All I want is to make self.data the default argument for self.f(). (I
1
1217
by: Matt B | last post by:
Hi all - I am going to implement a web service using .NET. It's a service that attributes authorship of a document to one of two authors, based on the training data provided. I am going to produce a basic web page that allows the data to be uploaded, before displaying the results. The web service needs to receive three large sets of data...
3
2504
by: prasanthag | last post by:
Hi, I am a newbie to this group. I have a problem in handling the variable arguments passed to a function. My requirement is like this. I have 2 functions say, void funcX(int i, int j); void funcY(int i, int j,char *name);
0
7520
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7450
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7957
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7470
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
7809
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
1
5368
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
3500
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
1
1941
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
0
763
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.