This is obviously an XML newbie question, but hopefully someone can give me a good headstart in how to best approach the following:
A. I have a bunch of users, and each of them belong to one or more user groups. The xml could look something like:
<users>
<user id="1">
<name>John</name>
<email>[EMAIL PROTECTED]</email>
<groups>
<group id="1">
<name>Administrators</name>
<description>....</description>
</group>
<group id="2">
<name>Average Users</name>
<description>....</description>
</group>
</groups>
</user>
<user id="2">
.... etc.....
B. Then I also have a bunch user groups which would each contain a bunch of users. Basically the same information, just a different way to look at it. In XML it could like this...
<groups>
<group id="1">
<name>Administrators</name>
<description>....</description>
<users>
<user id="1">
<name>John</name>
<email>[EMAIL PROTECTED]</email>
</user>
<user id="2">
... etc.....
</user>
</users>
</group>
<group id="2">
... etc...
In the application I would have 2 different places, one for each view. One place would be the primary place to add, edit, and manage users, the other to manage user groups. As for UI components, I would use DataGrids, bound to each other.
I don't necessarily want to keep (and update) the same data twice, so maybe there is some nice transformation woodo one could do to share and update the same set of data between the 2 functional views.
Of course, one could also use the XML only for feeding the UI controls. Basically refreshing these XMLs whenever the data has been updated on the backend (database) - but for now I would like to keep my options open and possibly store the information in an XML instead of related database tables...
Grateful for any advise from the "Internets" ;-)
__._,_.___--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
| Software development tool | Software development | Software development services |
| Home design software | Software development company |
Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe
__,_._,___

