[gdome]entity association
- From: Rafael Jannone <jannone inf ufrgs br>
- To: gdome gnome org
- Subject: [gdome]entity association
- Date: Wed, 3 Dec 2003 23:37:38 -0200
Hi,
What code is required in order to implement the interface for a given entity?
Say, for instance, that I have a struct like this:
struct Point {
int x;
int y;
}
.. and I want to automatically create an instance of Point upon loading the
following XML:
<point x="123" y="456" />
I believe the DTD for this would be something like:
<!ELEMENT POINT EMPTY>
<!ATTLIST POINT
X CDATA #REQUIRED
Y CDATA #REQUIRED>
Note that I also want to be able to modify those values just by invoking the
attribute set method for that node (reflecting the changes into the Point
instance)
How can I code this interface implementation in C using gdome2?
Any pointers are greatly appreciated!
Thanks,
--
Rafael Jannone
ICQ: 10115284
----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.
[Date Prev][
Date Next] [Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]